From 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 28 Nov 2021 09:27:41 -0500 Subject: a few small changes --- src/commands/moderation/unban.ts | 42 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'src/commands/moderation/unban.ts') diff --git a/src/commands/moderation/unban.ts b/src/commands/moderation/unban.ts index 1492b63..8444801 100644 --- a/src/commands/moderation/unban.ts +++ b/src/commands/moderation/unban.ts @@ -5,46 +5,30 @@ export default class UnbanCommand extends BushCommand { super('unban', { aliases: ['unban'], category: 'moderation', - description: { - content: 'Unban a member from the server.', - usage: ['unban [--delete]'], - examples: ['unban 322862723090219008 I changed my mind, commands are allowed in #general'] - }, + description: 'Unban a member from the server.', + usage: ['unban '], + examples: ['unban 322862723090219008 I changed my mind, commands are allowed in #general'], args: [ { id: 'user', + description: 'The user to unban.', type: 'globalUser', - prompt: { - start: 'What user would you like to unban?', - retry: '{error} Choose a valid user to unban.' - } + prompt: 'What user would you like to unban?', + retry: '{error} Choose a valid user to unban.', + slashType: 'USER' }, { id: 'reason', + description: 'The reason for the unban', type: 'string', match: 'restContent', - prompt: { - start: 'Why should this user be unbanned?', - retry: '{error} Choose a valid unban reason.', - optional: true - } + prompt: 'Why should this user be unbanned?', + retry: '{error} Choose a valid unban reason.', + optional: true, + slashType: 'STRING' } ], slash: true, - slashOptions: [ - { - name: 'user', - description: 'What user would you like to unban?', - type: 'USER', - required: true - }, - { - name: 'reason', - description: 'Why should this user be unbanned?', - type: 'STRING', - required: false - } - ], channel: 'guild', clientPermissions: ['BAN_MEMBERS'], userPermissions: ['BAN_MEMBERS'] @@ -58,7 +42,7 @@ export default class UnbanCommand extends BushCommand { }); const responseMessage = () => { - const victim = util.format.bold(user.tag); + const victim = util.format.input(user.tag); switch (responseCode) { case 'missing permissions': return `${util.emojis.error} Could not unban ${victim} because I am missing the **Ban Members** permission.`; -- cgit