Skip to content

EventService

github-actions[bot] edited this page Sep 30, 2024 · 6 revisions

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


🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally