diff --git a/typings/index.d.ts b/typings/index.d.ts index 17e251bae..758b3cff4 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -193,10 +193,19 @@ declare module 'discord.js' { public toJSON(): object; public on(event: K, listener: (...args: ClientEvents[K]) => void): this; + public on(event: Exclude, listener: (...args: any[]) => void): this; public once(event: K, listener: (...args: ClientEvents[K]) => void): this; + public once(event: Exclude, listener: (...args: any[]) => void): this; public emit(event: K, ...args: ClientEvents[K]): boolean; + public emit(event: Exclude, ...args: any[]): boolean; + + public off(event: K, listener: (...args: ClientEvents[K]) => void): this; + public off(event: Exclude, listener: (...args: any[]) => void): this; + + public removeAllListeners(event?: K): this; + public removeAllListeners(event?: Exclude): this; } export class ClientApplication extends Base {