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

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)) {
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)
}
}
}