diff --git a/structure/moderation/interfaces/Infraction.js b/structure/moderation/interfaces/Infraction.js index b739472..643bb8d 100644 --- a/structure/moderation/interfaces/Infraction.js +++ b/structure/moderation/interfaces/Infraction.js @@ -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'); } }