aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/role.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 19:19:06 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-13 19:19:06 -0500
commit8a27a3428dc3946a538f6471e480a34e41ceb7e6 (patch)
treeca45e5d9a94b32aa410624ae8a02d53f11cb4a33 /src/commands/moderation/role.ts
parent64d8476209d33c06547988c27874b986814db232 (diff)
downloadtanzanite-8a27a3428dc3946a538f6471e480a34e41ceb7e6.tar.gz
tanzanite-8a27a3428dc3946a538f6471e480a34e41ceb7e6.tar.bz2
tanzanite-8a27a3428dc3946a538f6471e480a34e41ceb7e6.zip
added new automod thing, fixed some errors
Diffstat (limited to 'src/commands/moderation/role.ts')
-rw-r--r--src/commands/moderation/role.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts
index 7ca0a5d..275db38 100644
--- a/src/commands/moderation/role.ts
+++ b/src/commands/moderation/role.ts
@@ -105,6 +105,7 @@ export default class RoleCommand extends BushCommand {
message: BushMessage | BushSlashMessage,
args: { action: 'add' | 'remove'; member: BushGuildMember; role: BushRole; duration?: number | null; force?: boolean }
) {
+ if (!args.role) return await message.util.reply(`${util.emojis.error} You must specify a role.`);
if (args.duration === null) args.duration = 0;
if (
!message.member!.permissions.has('MANAGE_ROLES') &&