Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {
"@types/node": "^12.7.3",
"discord.js": "^12.5.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this.

"discord.js-docgen": "discordjs/docgen",
"eslint": "^6.3.0",
"typescript": "^3.6.2"
Expand Down
1 change: 0 additions & 1 deletion src/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class CommandDispatcher {
* @param {Message} message - The message to handle
* @param {Message} [oldMessage] - The old message before the update
* @return {Promise<void>}
* @private
*/
async handleMessage(message, oldMessage) {
/* eslint-disable max-depth */
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
private inhibit(cmdMsg: CommandoMessage): Inhibition;
private matchDefault(message: Message, pattern: RegExp, commandNameIndex?: number, prefixless?: boolean): CommandoMessage;
private parseMessage(message: Message): CommandoMessage;
Expand All @@ -131,6 +130,7 @@ declare module 'discord.js-commando' {
public inhibitors: Set<Function>;
public registry: CommandoRegistry;

public handleMessage(message: Message, oldMessage?: Message): Promise<void>;
public addInhibitor(inhibitor: Inhibitor): boolean;
public removeInhibitor(inhibitor: Inhibitor): boolean;
}
Expand Down