From 91a8b135e3675144a238460f831e7be0471e235c Mon Sep 17 00:00:00 2001 From: Navy Date: Tue, 28 Jul 2020 13:50:41 +0300 Subject: [PATCH] reeee --- 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 5d020dd..b8b4407 100644 --- a/structure/moderation/interfaces/Infraction.js +++ b/structure/moderation/interfaces/Infraction.js @@ -225,7 +225,7 @@ class Infraction { if (this.guild && this.guild._settings.protection.enabled) { //Idk what the thought process here has been, but the user object does not have roles, and the executor is a user object const executorHighest = this.guild.members.cache.get(this.executor.id).roles.highest; //this.executor.roles.highest; - const targetHighest = this.member.roles.highest; + const targetHighest = this.guild.members.cache.get(this.target.id).roles.highest; //this.member.roles.highest; if(executorHighest.comparePositionTo(targetHighest) > 0) { return this._fail('INFRACTION_PROTECTIONERROR'); }