WIP: feat/20-reactions-for-roles #59

Draft
kenobi wants to merge 16 commits from feat/20-reactions-for-roles into master
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 6d0eaed426 - Show all commits

View File

@ -39,7 +39,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
else if (isInitialAnnouncement(reactedUponMessage)) {
if (messageReaction.emoji.toString() === Emoji.ticket) {
logger.error(`Got a role emoji. ${reactedUponMessage.id}`)
return client.roleController.addMediaRoleToUser(user, guildId, requestId)
return client.roleController.addMediaRoleToUser(user, messageReaction.message.guild, requestId)
}
return
}

View File

@ -27,7 +27,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
if (isInitialAnnouncement(reactedUponMessage)) {
if (messageReaction.emoji.toString() === Emoji.ticket) {
logger.info(`User: ${user.id}, ${user.username} has removed a ticket reaction. Starting role management`, { requestId, guildId })
return client.roleController.removeMediaRoleFromUser(user, guildId, requestId)
return client.roleController.removeMediaRoleFromUser(user, messageReaction.message.guild, requestId)
}
}
}