From bada2976eed34a2530bc09683d2de17c71c744a8 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 30 Aug 2021 19:42:10 +0000 Subject: some fixes + some more error stuff --- src/commands/moderation/role.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/commands/moderation') 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}.` } }; -- cgit