From 329811a66175fec8890ffa06d2366a11da3067ef Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 10 May 2021 22:21:25 +0300 Subject: [PATCH] bugfix to hierarchy check --- structure/moderation/interfaces/Infraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }