From d40527d0a2d9f209905750258f71bedff1cdf089 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:31:09 -0400 Subject: turned on ts strict option --- src/commands/moderation/purge.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/purge.ts') 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(() => {}); } }); } -- cgit