aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-30 19:42:10 +0000
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-30 19:42:10 +0000
commitbada2976eed34a2530bc09683d2de17c71c744a8 (patch)
treefe459cebb005dd90d1ae7ed3269a77248f780499 /src/commands/moderation
parentaaef32128f8c8c30254836932805d0745647c646 (diff)
downloadtanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.tar.gz
tanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.tar.bz2
tanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.zip
some fixes + some more error stuff
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/role.ts15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts
index ff0e049..15af014 100644
--- a/src/commands/moderation/role.ts
+++ b/src/commands/moderation/role.ts
@@ -65,10 +65,7 @@ export default class RoleCommand extends BushCommand {
type: [['add'], ['remove']],
prompt: {
start: 'Would you like to `add` or `remove` a role?',
- retry: (...arg) => {
- console.debug(...arg);
- return '{error} Choose whether you would you like to `add` or `remove` a role.';
- }
+ retry: '{error} Choose whether you would you like to `add` or `remove` a role.'
}
};
@@ -77,10 +74,7 @@ export default class RoleCommand extends BushCommand {
type: 'member',
prompt: {
start: `What user do you want to ${action} the role ${action === 'add' ? 'to' : 'from'}?`,
- retry: (...arg) => {
- console.debug(...arg);
- return `{error} Choose a valid user to ${action} the role ${action === 'add' ? 'to' : 'from'}.`;
- }
+ retry: `{error} Choose a valid user to ${action} the role ${action === 'add' ? 'to' : 'from'}.`
}
};
@@ -92,10 +86,7 @@ export default class RoleCommand extends BushCommand {
start: `What role do you want to ${action} ${action === 'add' ? 'to' : 'from'} the user${
action === 'add' ? ', and for how long' : ''
}?`,
- retry: (...arg) => {
- console.debug(...arg);
- return `{error} Choose a valid role to ${action}.`;
- }
+ retry: `{error} Choose a valid role to ${action}.`
}
};