From 4399dfe6b8467a76cd0f69c0c4c85b6a739bb879 Mon Sep 17 00:00:00 2001 From: DuAnti7423 <82730507+DuAnti7423@users.noreply.github.com> Date: Sat, 22 May 2021 23:38:32 +0200 Subject: [PATCH] Fixxed a copy error replaced reactionUser with user cause reactionUser was defined in the ticket command --- commands/blacklistUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/blacklistUser.js b/commands/blacklistUser.js index 72eda28..a2c7866 100644 --- a/commands/blacklistUser.js +++ b/commands/blacklistUser.js @@ -70,7 +70,7 @@ module.exports = { .setDescription(`${user} is already blacklisted`) .setColor(supportbot.ErrorColour) - if(user.roles.cache.find(role => role.name === supportbot.TicketBlackListRole) || reactionUser.roles.cache.find(role => role.id === supportbot.TicketBlackListRole)) { + if(user.roles.cache.find(role => role.name === supportbot.TicketBlackListRole) || user.roles.cache.find(role => role.id === supportbot.TicketBlackListRole)) { return message.channel.send({ embed: embed4 })