aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/role.ts
diff options
context:
space:
mode:
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') &&