Fixxed a copy error
replaced reactionUser with user cause reactionUser was defined in the ticket command
This commit is contained in:
1 parent
defd0cc78c
commit
4399dfe6b8
1 file changed
+1
-1
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user