diff options
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushInhibitor.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushInhibitor.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushInhibitor.ts b/src/lib/extensions/discord-akairo/BushInhibitor.ts index c3f9994..7f13594 100644 --- a/src/lib/extensions/discord-akairo/BushInhibitor.ts +++ b/src/lib/extensions/discord-akairo/BushInhibitor.ts @@ -6,6 +6,13 @@ export class BushInhibitor extends Inhibitor { } export interface BushInhibitor { + /** + * Checks if message should be blocked. + * A return value of true will block the message. + * If returning a Promise, a resolved value of true will block the message. + * @param message - Message being handled. + * @param command - Command to check. + */ exec(message: BushMessage, command: BushCommand): any; exec(message: BushMessage | BushSlashMessage, command: BushCommand): any; } |