From 34b55d206c5048b4abacf68c663261f494c888a2 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 2 Jun 2022 18:09:51 -0400 Subject: feat(helpCommand): add arguments --- src/commands/moderation/ban.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commands/moderation/ban.ts') diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 14bbba6..77951c3 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -24,6 +24,7 @@ export default class BanCommand extends BushCommand { id: 'user', description: 'The user that will be banned.', type: util.arg.union('user', 'snowflake'), + readableType: 'user|snowflake', prompt: 'What user would you like to ban?', retry: '{error} Choose a valid user to ban.', slashType: ApplicationCommandOptionType.User @@ -46,6 +47,7 @@ export default class BanCommand extends BushCommand { 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.', type: util.arg.range('integer', 0, 7, true), + readableType: 'integer [0, 7]', optional: true, slashType: ApplicationCommandOptionType.Integer, choices: [...Array(8).keys()].map((v) => ({ name: v.toString(), value: v })) -- cgit