perm changes
parent
4541482cf5
commit
fee63d56aa
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ export default class Ban extends Command {
|
|||
this.name = 'ban';
|
||||
this.description = 'Bans a member from the guild.';
|
||||
this.usage = 'ban <member> [time] [reason]';
|
||||
this.permissions = 2;
|
||||
this.permissions = 3;
|
||||
this.guildOnly = true;
|
||||
this.enabled = true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ export default class Unban extends Command {
|
|||
this.name = 'unban';
|
||||
this.description = 'Unbans a member from the guild.';
|
||||
this.usage = 'unban <user id> [reason]';
|
||||
this.permissions = 2;
|
||||
this.permissions = 3;
|
||||
this.guildOnly = true;
|
||||
this.enabled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue