aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/purge.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-17 12:31:09 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-17 12:31:09 -0400
commitd40527d0a2d9f209905750258f71bedff1cdf089 (patch)
treee017fd844c2135bfc85228d00ef2617d24ce0a3f /src/commands/moderation/purge.ts
parentd431ad00754f3f250103deedea495b9bcee73fc0 (diff)
downloadtanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.gz
tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.tar.bz2
tanzanite-d40527d0a2d9f209905750258f71bedff1cdf089.zip
turned on ts strict option
Diffstat (limited to 'src/commands/moderation/purge.ts')
-rw-r--r--src/commands/moderation/purge.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/moderation/purge.ts b/src/commands/moderation/purge.ts
index 4f1a5a6..b391ff6 100644
--- a/src/commands/moderation/purge.ts
+++ b/src/commands/moderation/purge.ts
@@ -1,3 +1,4 @@
+import { Message } from 'discord.js';
import { BushCommand, BushMessage } from '../../lib';
export default class PurgeCommand extends BushCommand {
@@ -60,10 +61,10 @@ export default class PurgeCommand extends BushCommand {
else {
await message.util
.send(`${util.emojis.success} Successfully purged **${purged.size}** messages.`)
- .then(async (purgeMessage: BushMessage) => {
+ .then(async (purgeMessage) => {
if (!message.util.isSlash) {
await util.sleep(5);
- await purgeMessage.delete().catch(() => {});
+ await (purgeMessage as Message).delete().catch(() => {});
}
});
}