fix incorrect method call
This commit is contained in:
parent
8f320cee5c
commit
6d0eaed426
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user