Update messageReactionAdd.js

This commit is contained in:
Kieran Davies authored and GitHub committed 2020-12-18 13:59:36 +00:00
1 parent a0bdec4c42
commit 01399e343b
1 file changed
+8 -4
+8 -4
View File
@@ -33,10 +33,14 @@ module.exports = async (bot, message) => {
});
const ticketCMD = supportbot.NewTicket;
const cmd = bot.commands.get("ticket");
if(!cmd) return;
console.log("1")
cmd.execute(bot, message);
try {
const cmd = bot.commands.get("ticket");
if(!cmd) return;
console.log("1")
cmd.execute(bot, message);
} catch (error) {
console.error(error);
}
}
}