This commit is contained in:
kenobi 2023-11-20 00:03:45 +01:00
parent fec0bc31f1
commit 8efae12907
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ export async function execute(messageReaction: MessageReaction, user: User) {
//logger.debug(`reactedUponMessage payload: ${JSON.stringify(reactedUponMessage)}`) //logger.debug(`reactedUponMessage payload: ${JSON.stringify(reactedUponMessage)}`)
logger.info(`emoji: ${messageReaction.emoji.toString()}`) logger.info(`emoji: ${messageReaction.emoji.toString()}`)
if (messageReaction.emoji.toString() === Emoji.ticket) {
logger.info(`User: ${user.id}, ${user.username} has added a ticket reaction. Starting role management`, { requestId, guildId })
return
}
if (!Object.values(ValidVoteEmotes).includes(messageReaction.emoji.toString()) && messageReaction.emoji.toString() !== NONE_OF_THAT) { if (!Object.values(ValidVoteEmotes).includes(messageReaction.emoji.toString()) && messageReaction.emoji.toString() !== NONE_OF_THAT) {
logger.info(`${messageReaction.emoji.toString()} currently not handled`) logger.info(`${messageReaction.emoji.toString()} currently not handled`)