Using the event builder
The EventOptionsBuilder
can be used to create EventOptions, like the name of the event.
const { Event, EventOptionsBuilder } = require("gcommands")
module.exports = class extends Event {
constructor(client) {
super(client, new EventOptionsBuilder()
.setName('messageCreate')
.setOnce(false)
.setWs(false)
)
}
};
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11