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 | |
parent | 6e74b5fc9c68b5a919ec32304e2809751ab8fec5 (diff) | |
download | tanzanite-e743f268b17bc486ba05de9351f14e634d900521.tar.gz tanzanite-e743f268b17bc486ba05de9351f14e634d900521.tar.bz2 tanzanite-e743f268b17bc486ba05de9351f14e634d900521.zip |
fixes & inconsistencies
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dev/superUser.ts | 4 | ||||
-rw-r--r-- | src/commands/dev/syncAutomod.ts | 2 | ||||
-rw-r--r-- | src/commands/moderation/ban.ts | 6 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts index 9cdac4a..7b75672 100644 --- a/src/commands/dev/superUser.ts +++ b/src/commands/dev/superUser.ts @@ -4,8 +4,8 @@ import { ArgumentTypeCasterReturn } from 'discord-akairo/dist/src/struct/command export default class SuperUserCommand extends BushCommand { public constructor() { - super('superuser', { - aliases: ['superuser', 'su'], + super('superUser', { + aliases: ['super-user', 'su'], category: 'dev', description: 'A command to manage superusers.', usage: ['superuser <add/remove> <user>'], diff --git a/src/commands/dev/syncAutomod.ts b/src/commands/dev/syncAutomod.ts index 523a624..4d4a6d7 100644 --- a/src/commands/dev/syncAutomod.ts +++ b/src/commands/dev/syncAutomod.ts @@ -5,7 +5,7 @@ import { NodeVM } from 'vm2'; export default class SyncAutomodCommand extends BushCommand { public constructor() { - super('sync-automod', { + super('syncAutomod', { aliases: ['sync-automod'], category: 'dev', description: 'Syncs automod info with the github repository.', 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.`); } |