aboutsummaryrefslogtreecommitdiff
path: root/src/commands/admin/roleAll.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-28 09:27:41 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-28 09:27:41 -0500
commit453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (patch)
tree8b98d2f30dbb6a8448602446cfacf9091667cc33 /src/commands/admin/roleAll.ts
parentde4c3dcaf172804d34ae708be1ed3e75af42f4d5 (diff)
downloadtanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.gz
tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.bz2
tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.zip
a few small changes
Diffstat (limited to 'src/commands/admin/roleAll.ts')
-rw-r--r--src/commands/admin/roleAll.ts38
1 files changed, 13 insertions, 25 deletions
diff --git a/src/commands/admin/roleAll.ts b/src/commands/admin/roleAll.ts
index 3c6b629..585e6cc 100644
--- a/src/commands/admin/roleAll.ts
+++ b/src/commands/admin/roleAll.ts
@@ -6,46 +6,34 @@ export default class RoleAllCommand extends BushCommand {
super('roleAll', {
aliases: ['role-all', 'rall'],
category: 'admin',
- description: {
- content: 'Give a role to every member on the server.',
- usage: ['role-all <role> [--bots]'],
- examples: ['role-all 783794633129197589 --bots']
- },
+ description: 'Give a role to every member on the server.',
+ usage: ['role-all <role> [--bots]'],
+ examples: ['role-all 783794633129197589 --bots'],
args: [
{
id: 'role',
+ description: 'The role to assigned to every member on the server.',
type: 'role',
- prompt: {
- start: 'What role would you like to give to every member on the server?',
- retry: '{error} Pick a valid role.'
- }
+ prompt: 'What role would you like to give to every member on the server?',
+ retry: '{error} Pick a valid role.',
+ slashType: 'ROLE'
},
{
id: 'bots',
+ description: 'Also give the role to bots.',
match: 'flag',
+ prompt: 'Would you like to also give roles to bots?',
flag: '--bots',
- default: false
+ default: false,
+ slashType: 'BOOLEAN',
+ optional: true
}
],
channel: 'guild',
clientPermissions: (m) => util.clientSendAndPermCheck(m, ['MANAGE_ROLES']),
userPermissions: ['ADMINISTRATOR'],
typing: true,
- slash: true,
- slashOptions: [
- {
- name: 'role',
- description: 'What role would you like to give to every member on the server?',
- type: 'ROLE',
- required: true
- },
- {
- name: 'bots',
- description: 'Would you like to also give roles to bots?',
- type: 'BOOLEAN',
- required: false
- }
- ]
+ slash: true
});
}