diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-13 15:04:42 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-13 15:04:42 -0400 |
commit | cdb8b0297f806cb3147b3759b0fd234bffbcc3f9 (patch) | |
tree | 665c8d746e1ec7dee5755edbc7a8e6be7f77c26d /src/commands/moderation/warn.ts | |
parent | 528a4c2bde37ca7d1ded38af31f4a482d492d894 (diff) | |
download | tanzanite-cdb8b0297f806cb3147b3759b0fd234bffbcc3f9.tar.gz tanzanite-cdb8b0297f806cb3147b3759b0fd234bffbcc3f9.tar.bz2 tanzanite-cdb8b0297f806cb3147b3759b0fd234bffbcc3f9.zip |
added unmute and unban command
Diffstat (limited to 'src/commands/moderation/warn.ts')
-rw-r--r-- | src/commands/moderation/warn.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/moderation/warn.ts b/src/commands/moderation/warn.ts index 5d679ab..3d353ca 100644 --- a/src/commands/moderation/warn.ts +++ b/src/commands/moderation/warn.ts @@ -33,15 +33,15 @@ export default class WarnCommand extends BushCommand { slash: true, slashOptions: [ { - type: 'USER', name: 'user', description: 'What user would you like to warn?', + type: 'USER', required: true }, { - type: 'STRING', name: 'reason', description: 'Why should this user be warned?', + type: 'STRING', required: false } ], @@ -58,7 +58,7 @@ export default class WarnCommand extends BushCommand { const canModerateResponse = this.client.util.moderationPermissionCheck(message.member, member, 'warn'); const victimBoldTag = `**${member.user.tag}**`; - if (typeof canModerateResponse !== 'boolean') { + if (canModerateResponse !== true) { return message.util.reply(canModerateResponse); } |