forked from Galactic/galactic-bot
bugfix to hierarchy check
This commit is contained in:
parent
a1433dc0b8
commit
329811a661
@ -229,7 +229,7 @@ class Infraction {
|
||||
if (!target) return this._succeed();
|
||||
const executorHighest = executor.roles.highest; //this.executor.roles.highest;
|
||||
const targetHighest = target.roles.highest; //this.member.roles.highest;
|
||||
if(executorHighest.comparePositionTo(targetHighest) > 0) {
|
||||
if (executorHighest.comparePositionTo(targetHighest) < 0) {
|
||||
return this._fail('INFRACTION_PROTECTIONERROR');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user