import { BushInhibitor, type BushCommand, type CommandMessage, type SlashMessage } from '#lib'; export default class DMInhibitor extends BushInhibitor { public constructor() { super('dm', { reason: 'dm', category: 'command', type: 'post', priority: 75 }); } public async exec(message: CommandMessage | SlashMessage, command: BushCommand): Promise { if (command.channel === 'dm' && message.guild) { void this.client.console.verbose( 'dm', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild.name}>>.` ); return true; } return false; } }