From fee63d56aa4b3bc0f935ced6a4fca9c521185335 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 20 Apr 2020 13:57:08 -0400 Subject: [PATCH] perm changes --- src/class/Command.ts | 23 +++++++++++++++-------- src/commands/ban.ts | 2 +- src/commands/eval.ts | 2 +- src/commands/unban.ts | 2 +- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/class/Command.ts b/src/class/Command.ts index 2fa7faa..7fc00f5 100644 --- a/src/class/Command.ts +++ b/src/class/Command.ts @@ -26,10 +26,13 @@ export default class Command { /** * - **0:** Everyone - * - **1:** Associates Team+ - * - **2:** Sheriff+ - * - **3:** Faculty Marshals+ - * - **4:** Marshal Generals of Engineering + * - **1:** Associates+ + * - **2:** Core Team+ + * - **3:** Moderators, Supervisor, Board of Directors + * - **4:** Technicians, Supervisor, Board of Directors + * - **5:** Moderators, Technicians, Supervisor, Board of Directors + * - **6:** Supervisor+ + * - **7:** Board of Directors */ public permissions: number; @@ -57,13 +60,17 @@ export default class Command { case 0: return true; case 1: - return member.roles.some((r) => ['662163685439045632', '455972169449734144', '453689940140883988'].includes(r)); + return member.roles.some((r) => ['701481967149121627', '453689940140883988', '455972169449734144', '701454780828221450', '701454855952138300', '662163685439045632'].includes(r)); case 2: - return member.roles.some((r) => ['662163685439045632', '455972169449734144'].includes(r)); + return member.roles.some((r) => ['453689940140883988', '455972169449734144', '701454780828221450', '701454855952138300', '662163685439045632'].includes(r)); case 3: - return member.roles.some((r) => ['662163685439045632'].includes(r)); + return member.roles.some((r) => ['455972169449734144', '701454855952138300', '662163685439045632'].includes(r)); case 4: - return member.id === '278620217221971968' || member.id === '253600545972027394'; + return member.roles.some((r) => ['701454780828221450', '701454855952138300', '662163685439045632'].includes(r)); + case 5: + return member.roles.some((r) => ['701454855952138300', '662163685439045632'].includes(r)); + case 6: + return member.roles.includes('662163685439045632'); default: return false; } diff --git a/src/commands/ban.ts b/src/commands/ban.ts index d8718c4..e8e43d5 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -8,7 +8,7 @@ export default class Ban extends Command { this.name = 'ban'; this.description = 'Bans a member from the guild.'; this.usage = 'ban [time] [reason]'; - this.permissions = 2; + this.permissions = 3; this.guildOnly = true; this.enabled = true; } diff --git a/src/commands/eval.ts b/src/commands/eval.ts index f62fc7a..e749d4d 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -9,7 +9,7 @@ export default class Eval extends Command { this.name = 'eval'; this.description = 'Evaluates native JS code'; this.aliases = ['e']; - this.permissions = 4; + this.permissions = 7; this.enabled = true; this.guildOnly = false; } diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 025758c..a0a4fbc 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -7,7 +7,7 @@ export default class Unban extends Command { this.name = 'unban'; this.description = 'Unbans a member from the guild.'; this.usage = 'unban [reason]'; - this.permissions = 2; + this.permissions = 3; this.guildOnly = true; this.enabled = true; }