blob: b96043941971a00379a3e8c127038264b56e55f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { BushCommand, BushInhibitor, BushMessage, BushSlashMessage } from '@lib';
export default class GuildInhibitor extends BushInhibitor {
public constructor() {
super('guild', {
reason: 'guild',
category: 'command',
type: 'post',
priority: 80
});
}
public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
if (command.channel === 'guild' && !message.guild) {
return true;
}
return false;
}
}
|