From d8c1e87b9cfdb623b10a045e6efebfe92dbadcf5 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 1 May 2020 00:41:13 -0400 Subject: [PATCH] fixes to whois perm calculations --- src/commands/whois.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index c592a81..80fde1a 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -87,8 +87,8 @@ export default class Whois extends Command { const bit = member.permission.allow; if (this.client.guilds.get(this.client.config.guildID).ownerID === member.id) serverAcknowledgements.push('Server Owner'); if ((bit | 8) === bit) { permissions.push('Administrator'); serverAcknowledgements.push('Server Admin'); } - if ((bit | 20) === bit) { permissions.push('Manage Server'); serverAcknowledgements.push('Server Manager'); } - if ((bit | 10) === bit) permissions.push('Manage Channels'); + if ((bit | 32) === bit) { permissions.push('Manage Server'); serverAcknowledgements.push('Server Manager'); } + if ((bit | 16) === bit) permissions.push('Manage Channels'); if ((bit | 268435456) === bit) permissions.push('Manage Roles'); if ((bit | 8192) === bit) { permissions.push('Manage Messages'); serverAcknowledgements.push('Server Moderator'); } if ((bit | 134217728) === bit) permissions.push('Manage Nicknames');