diff --git a/src/dispatcher.js b/src/dispatcher.js index 53d60f40..2be4e506 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -101,7 +101,6 @@ class CommandDispatcher { * @param {Message} message - The message to handle * @param {Message} [oldMessage] - The old message before the update * @return {Promise} - * @private */ async handleMessage(message, oldMessage) { /* eslint-disable max-depth */ diff --git a/typings/index.d.ts b/typings/index.d.ts index cf8092b3..5b22c1ef 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -121,7 +121,6 @@ declare module 'discord.js-commando' { private buildCommandPattern(prefix: string): RegExp; private cacheCommandoMessage(message: Message, oldMessage: Message, cmdMsg: CommandoMessage, responses: Message | Message[]): void; - private handleMessage(message: Message, oldMessage?: Message): Promise; private inhibit(cmdMsg: CommandoMessage): Inhibition; private matchDefault(message: Message, pattern: RegExp, commandNameIndex?: number, prefixless?: boolean): CommandoMessage; private parseMessage(message: Message): CommandoMessage; @@ -131,6 +130,7 @@ declare module 'discord.js-commando' { public inhibitors: Set; public registry: CommandoRegistry; + public handleMessage(message: Message, oldMessage?: Message): Promise; public addInhibitor(inhibitor: Inhibitor): boolean; public removeInhibitor(inhibitor: Inhibitor): boolean; }