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 { if (command.channel === 'guild' && !message.guild) { return true; } return false; } }