fix incorrect method call
Compile the repository / compile (pull_request) Successful in 17s Details
Run unit tests / test (pull_request) Successful in 13s Details

This commit is contained in:
kenobi 2023-11-20 00:31:16 +01:00
parent 8f320cee5c
commit 6d0eaed426
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
else if (isInitialAnnouncement(reactedUponMessage)) { else if (isInitialAnnouncement(reactedUponMessage)) {
if (messageReaction.emoji.toString() === Emoji.ticket) { if (messageReaction.emoji.toString() === Emoji.ticket) {
logger.error(`Got a role emoji. ${reactedUponMessage.id}`) 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 return
} }

View File

@ -27,7 +27,7 @@ export async function execute(messageReaction: MessageReaction, user: User) {
if (isInitialAnnouncement(reactedUponMessage)) { if (isInitialAnnouncement(reactedUponMessage)) {
if (messageReaction.emoji.toString() === Emoji.ticket) { if (messageReaction.emoji.toString() === Emoji.ticket) {
logger.info(`User: ${user.id}, ${user.username} has removed a ticket reaction. Starting role management`, { requestId, guildId }) 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)
} }
} }
} }