perm changes
parent
4541482cf5
commit
fee63d56aa
|
@ -26,10 +26,13 @@ export default class Command {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* - **0:** Everyone
|
* - **0:** Everyone
|
||||||
* - **1:** Associates Team+
|
* - **1:** Associates+
|
||||||
* - **2:** Sheriff+
|
* - **2:** Core Team+
|
||||||
* - **3:** Faculty Marshals+
|
* - **3:** Moderators, Supervisor, Board of Directors
|
||||||
* - **4:** Marshal Generals of Engineering
|
* - **4:** Technicians, Supervisor, Board of Directors
|
||||||
|
* - **5:** Moderators, Technicians, Supervisor, Board of Directors
|
||||||
|
* - **6:** Supervisor+
|
||||||
|
* - **7:** Board of Directors
|
||||||
*/
|
*/
|
||||||
public permissions: number;
|
public permissions: number;
|
||||||
|
|
||||||
|
@ -57,13 +60,17 @@ export default class Command {
|
||||||
case 0:
|
case 0:
|
||||||
return true;
|
return true;
|
||||||
case 1:
|
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:
|
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:
|
case 3:
|
||||||
return member.roles.some((r) => ['662163685439045632'].includes(r));
|
return member.roles.some((r) => ['455972169449734144', '701454855952138300', '662163685439045632'].includes(r));
|
||||||
case 4:
|
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:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Ban extends Command {
|
||||||
this.name = 'ban';
|
this.name = 'ban';
|
||||||
this.description = 'Bans a member from the guild.';
|
this.description = 'Bans a member from the guild.';
|
||||||
this.usage = 'ban <member> [time] [reason]';
|
this.usage = 'ban <member> [time] [reason]';
|
||||||
this.permissions = 2;
|
this.permissions = 3;
|
||||||
this.guildOnly = true;
|
this.guildOnly = true;
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default class Eval extends Command {
|
||||||
this.name = 'eval';
|
this.name = 'eval';
|
||||||
this.description = 'Evaluates native JS code';
|
this.description = 'Evaluates native JS code';
|
||||||
this.aliases = ['e'];
|
this.aliases = ['e'];
|
||||||
this.permissions = 4;
|
this.permissions = 7;
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
this.guildOnly = false;
|
this.guildOnly = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default class Unban extends Command {
|
||||||
this.name = 'unban';
|
this.name = 'unban';
|
||||||
this.description = 'Unbans a member from the guild.';
|
this.description = 'Unbans a member from the guild.';
|
||||||
this.usage = 'unban <user id> [reason]';
|
this.usage = 'unban <user id> [reason]';
|
||||||
this.permissions = 2;
|
this.permissions = 3;
|
||||||
this.guildOnly = true;
|
this.guildOnly = true;
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue