aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/ban.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-02 18:09:51 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-02 18:09:51 -0400
commit34b55d206c5048b4abacf68c663261f494c888a2 (patch)
tree4a2ec064f43d4bc5cd217aeb078af6fcac9c57bb /src/commands/moderation/ban.ts
parent0d87396461833b23aaaf733aaa6f03e4889f4224 (diff)
downloadtanzanite-34b55d206c5048b4abacf68c663261f494c888a2.tar.gz
tanzanite-34b55d206c5048b4abacf68c663261f494c888a2.tar.bz2
tanzanite-34b55d206c5048b4abacf68c663261f494c888a2.zip
feat(helpCommand): add arguments
Diffstat (limited to 'src/commands/moderation/ban.ts')
-rw-r--r--src/commands/moderation/ban.ts2
1 files changed, 2 insertions, 0 deletions
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 }))