blob: 7f13594c25705f7e8c567c56e623da40bf7e0fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { type BushClient, type BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
import { Inhibitor } from 'discord-akairo';
export class BushInhibitor extends Inhibitor {
public declare client: BushClient;
}
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;
}
|