Events
Loads Events
public Events(dir: string, callback?: (event: EventInterface, file: string) => Awaited<unknown>): this
dir: events directory
callback: function executed when an event is loaded
client.Events(
"src/events",
(event, file)
=> console.log(`Loading event ${event.name}`)
);
Last updated
Was this helpful?