From 2bcb7a2fff88d8c94601babc60b19f725617354a Mon Sep 17 00:00:00 2001 From: FirezTheGreat Date: Wed, 19 Oct 2022 15:02:35 +0530 Subject: [PATCH] Fix --- commands/moderation/penalty.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/moderation/penalty.js b/commands/moderation/penalty.js index 7b22be2..a6fd439 100644 --- a/commands/moderation/penalty.js +++ b/commands/moderation/penalty.js @@ -299,7 +299,7 @@ module.exports = class Penalty extends Command { } }, { - new: true, + new: true } ); @@ -356,7 +356,7 @@ module.exports = class Penalty extends Command { }, existingTimeout > 0 ? existingTimeout + timeout : timeout); }; - if (interaction.member.manageable) { + if (member.manageable) { await member.setNickname(`[${player.points.current}] ${player.name}`); } else { await interaction.channel.send({ content: `*IGN has been updated to our database but failed to rename ${member}\'s IGN on discord.*` }); @@ -451,7 +451,7 @@ module.exports = class Penalty extends Command { } }, { - new: true, + new: true } ); @@ -459,7 +459,7 @@ module.exports = class Penalty extends Command { member.communicationDisabledUntilTimestamp ? await member.disableCommunicationUntil(member.communicationDisabledUntilTimestamp - penalty.duration_timestamp > 0 ? member.communicationDisabledUntilTimestamp - penalty.duration_timestamp : null) : null; - if (interaction.member.manageable) { + if (member.manageable) { await member.setNickname(`[${player.points.current}] ${player.name}`); } else { await interaction.channel.send({ content: `*IGN has been updated to our database but failed to rename ${member}\'s IGN on discord.*` });