mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
refactor: update command and event handling, improve logging, and enhance argument validation, add client inheritance
This commit is contained in:
@@ -12,6 +12,10 @@ export class UnicordEventProcessor extends EventEmitter {
|
||||
return super.on(event, handler);
|
||||
}
|
||||
|
||||
unregister<const Options extends UnicordCommandOptions>(event: string, handler: UnicordHandler<Options>) {
|
||||
return super.off(event, handler);
|
||||
}
|
||||
|
||||
emit(event: string, context: UnicordCommandContext | UnicordEventContext, args: any[]): boolean {
|
||||
return super.emit(event, context, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user