aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/warn.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-13 15:04:42 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-13 15:04:42 -0400
commitcdb8b0297f806cb3147b3759b0fd234bffbcc3f9 (patch)
tree665c8d746e1ec7dee5755edbc7a8e6be7f77c26d /src/commands/moderation/warn.ts
parent528a4c2bde37ca7d1ded38af31f4a482d492d894 (diff)
downloadtanzanite-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.ts6
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);
}