Event - shysolocup/noscord.js GitHub Wiki
class for blank events events are stored in Client.events |
|
JS |
let event = new events.Event;
client.events.push("example", event);
client.on("example", (a, b) => {
console.log(a, b); // 1 2
});
event.fire(1, 2); |
🛈 listeners |
🛈 listen() |
🛈 fire() |