diff --git a/events/messageReactionAdd.js b/events/messageReactionAdd.js index 2fed6a6..896f761 100644 --- a/events/messageReactionAdd.js +++ b/events/messageReactionAdd.js @@ -32,8 +32,8 @@ module.exports = async (bot, message) => { reaction.users.remove(r.id) }); - - const cmd = bot.commands.get(supportbot.NewTicket); + const ticketCMD = supportbot.NewTicket; + const cmd = bot.commands.get(ticketCMD); if(!cmd) return; console.log("1") cmd.execute(bot, message, args); @@ -46,4 +46,4 @@ module.exports = async (bot, message) => { }) -}; \ No newline at end of file +};