import { BushCommand, BushInhibitor, BushMessage, BushSlashMessage } from '@lib'; export default class DMInhibitor extends BushInhibitor { public constructor() { super('dm', { reason: 'dm', category: 'command', type: 'post', priority: 75 }); } public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise { if (command.channel === 'dm' && message.guild) { return true; } return false; } }