aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-23 18:20:35 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-23 18:20:35 -0400
commite1c9873287b1bdc24a07982b61652894423efa51 (patch)
treee8a551c2caa03f285e882e6b2519cbe52ac3376e /src/commands/moderation
parent8200a4427bb5c4093e7d4f1b30a3fdd7ee3380c1 (diff)
downloadtanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.gz
tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.bz2
tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.zip
use isSlashMessage
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/purge.ts4
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(() => {});
}
}); */
}