aboutsummaryrefslogtreecommitdiff
path: root/src/commands/admin
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-07 20:15:45 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-07 20:15:45 -0400
commit35d03eb54fe81c1d5c0359db67455b82f754e3f4 (patch)
tree5666ac26f6fee5e06c2c3a523fced614cb6723bf /src/commands/admin
parent198aeadfc73642498afcb1eb637e0de86ccc9308 (diff)
downloadtanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.gz
tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.bz2
tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.zip
add owner bypasses and prevent blacklisted users from having their dms logged
Diffstat (limited to 'src/commands/admin')
-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) {