diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-01 16:25:44 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-01 16:25:44 -0500 |
commit | e743f268b17bc486ba05de9351f14e634d900521 (patch) | |
tree | c3ddb15c4933c9353506fbc4682a7d4baaee2cf0 /src/commands/moderation | |
parent | 6e74b5fc9c68b5a919ec32304e2809751ab8fec5 (diff) | |
download | tanzanite-e743f268b17bc486ba05de9351f14e634d900521.tar.gz tanzanite-e743f268b17bc486ba05de9351f14e634d900521.tar.bz2 tanzanite-e743f268b17bc486ba05de9351f14e634d900521.zip |
fixes & inconsistencies
Diffstat (limited to 'src/commands/moderation')
-rw-r--r-- | src/commands/moderation/ban.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 209397c..5e3350f 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -16,7 +16,7 @@ export default class BanCommand extends BushCommand { aliases: ['ban', 'force-ban', 'dban'], category: 'moderation', description: 'Ban a member from the server.', - usage: ['ban <member> [reasonAndDuration] [--delete]'], + usage: ['ban <member> [reasonAndDuration] [--days <days>]'], examples: ['ban ironm00n 1 day commands in #general --delete 7'], args: [ { @@ -40,7 +40,7 @@ export default class BanCommand extends BushCommand { { id: 'days', description: 'The number of days of messages to delete when the user is banned, defaults to 0.', - flag: '--days', + flag: ['--days', '--delete'], match: 'option', prompt: "How many days of the user's messages would you like to delete?", retry: '{error} Choose between 0 and 7 days to delete messages from the user for.', @@ -95,8 +95,6 @@ export default class BanCommand extends BushCommand { if (message.util.parsed?.alias === 'dban' && !args.days) args.days = 1; if (!Number.isInteger(args.days) || args.days! < 0 || args.days! > 7) { - client.console.debug(args.days); - return message.util.reply(`${util.emojis.error} The delete days must be an integer between 0 and 7.`); } |