aboutsummaryrefslogtreecommitdiff
path: root/src/commands/admin/roleAll.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/admin/roleAll.ts')
-rw-r--r--src/commands/admin/roleAll.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/admin/roleAll.ts b/src/commands/admin/roleAll.ts
index 82d15f5..ca82ca8 100644
--- a/src/commands/admin/roleAll.ts
+++ b/src/commands/admin/roleAll.ts
@@ -36,7 +36,7 @@ export default class RoleAllCommand extends BushCommand {
public override async exec(message: BushMessage, args: { role: Role; bot?: boolean }): Promise<unknown> {
if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be run in a server.`);
- if (!message.member!.permissions.has('ADMINISTRATOR'))
+ if (!message.member!.permissions.has('ADMINISTRATOR') && !message.member!.user.isOwner())
return await message.util.reply(`${util.emojis.error} You must have admin perms to use this command.`);
if (args.role.comparePositionTo(message.guild.me!.roles.highest) >= 0 && !args.role) {