aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:17:48 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:17:48 -0500
commit4cebaca70939b87c78537c5c3cd099e29e2e4e04 (patch)
tree3cac2d6948b8398cd1e6cbc4fb040bf4f635a18d /src/commands/moderation
parentfbafd023546315541c12c068b8125ded2b84b733 (diff)
downloadtanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.gz
tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.bz2
tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.zip
use new setFooter overload
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/purge.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commands/moderation/purge.ts b/src/commands/moderation/purge.ts
index 7a25a0d..6125293 100644
--- a/src/commands/moderation/purge.ts
+++ b/src/commands/moderation/purge.ts
@@ -1,4 +1,5 @@
-import { ArgType, BushCommand, BushMessage } from '#lib';
+import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
+import assert from 'assert';
import { Collection, type Snowflake } from 'discord.js';
export default class PurgeCommand extends BushCommand {
@@ -47,7 +48,11 @@ export default class PurgeCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage, args: { amount: number; bot: boolean; user: ArgType<'user'> }) {
+ public override async exec(
+ message: BushMessage | BushSlashMessage,
+ args: { amount: number; bot: boolean; user: ArgType<'user'> }
+ ) {
+ assert(message.channel);
if (message.channel.type === 'DM') return message.util.reply(`${util.emojis.error} You cannot run this command in dms.`);
if (args.amount > 100 || args.amount < 1) return message.util.reply(`${util.emojis.error} `);