diff --git a/src/eventHandlers.ts b/src/eventHandlers.ts index cedb867..f9f73e2 100644 --- a/src/eventHandlers.ts +++ b/src/eventHandlers.ts @@ -10,7 +10,7 @@ export type EventHandlersObject = { export type EventHandlerArguments = Parameters; export type EventHandlerFunction - = (this: Client, ...args: [ ...EventHandlerArguments, (name: string) => void ]) => void; + = (this: Client, ...args: [ ...EventHandlerArguments, setCachedName: (name: string) => void ]) => void; const mainEventHandlers: EventHandlersObject = { werror(reason) {