From e1c9873287b1bdc24a07982b61652894423efa51 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 23 Oct 2021 18:20:35 -0400 Subject: use isSlashMessage --- src/commands/moderation/purge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation') 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(() => {}); } }); */ } -- cgit