EventService - shysolocup/noscord.js GitHub Wiki

service class for handling, creating, and storing event-related stuff

notes:

  • events are stored in Client.events
  • glue handling is a big rabbit hole I don't suggest going through it unless you really want to learn how it works internally

AeplSubClass

JS
const { Client } = require('noscord.js');                
const client = new Client();

client.import("events");

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);

Properties

Methods

Classes

🛈 list

🛈 create()

🛈 Event

🛈 GlueHandler


⚠️ **GitHub.com Fallback** ⚠️