From e743f268b17bc486ba05de9351f14e634d900521 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 1 Feb 2022 16:25:44 -0500 Subject: fixes & inconsistencies --- src/commands/dev/superUser.ts | 4 ++-- src/commands/dev/syncAutomod.ts | 2 +- src/commands/moderation/ban.ts | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'src/commands') 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 '], 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 [reasonAndDuration] [--delete]'], + usage: ['ban [reasonAndDuration] [--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.`); } -- cgit