aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/unban.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/unban.ts')
-rw-r--r--src/commands/moderation/unban.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/commands/moderation/unban.ts b/src/commands/moderation/unban.ts
index 9d52dd2..3d61e82 100644
--- a/src/commands/moderation/unban.ts
+++ b/src/commands/moderation/unban.ts
@@ -7,7 +7,7 @@ export default class UnbanCommand extends BushCommand {
category: 'moderation',
description: {
content: 'Unban a member from the server.',
- usage: 'unban <member> <reason> [--delete ]',
+ usage: ['unban <member> <reason> [--delete]'],
examples: ['unban 322862723090219008 I changed my mind, commands are allowed in #general']
},
args: [
@@ -50,10 +50,7 @@ export default class UnbanCommand extends BushCommand {
userPermissions: ['BAN_MEMBERS']
});
}
- public override async exec(
- message: BushMessage | BushSlashMessage,
- { user, reason }: { user: BushUser; reason?: string }
- ): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, { user, reason }: { user: BushUser; reason?: string }) {
const responseCode = await message.guild!.bushUnban({
user,
moderator: message.author,