diff options
Diffstat (limited to 'src/commands/moderation/purge.ts')
-rw-r--r-- | src/commands/moderation/purge.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/moderation/purge.ts b/src/commands/moderation/purge.ts index 65555a1..472665c 100644 --- a/src/commands/moderation/purge.ts +++ b/src/commands/moderation/purge.ts @@ -66,9 +66,9 @@ export default class PurgeCommand extends BushCommand { client.emit('bushPurge', message.author, message.guild!, message.channel, messages); await message.util.send(`${util.emojis.success} Successfully purged **${purged.size}** messages.`); /* .then(async (purgeMessage) => { - if (!message.util.isSlash) { + if (!message.util.isSlashMessage(message)) { await util.sleep(5); - await (purgeMessage as Message).delete().catch(() => {}); + await purgeMessage.delete().catch(() => {}); } }); */ } |