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'); }