WIP: feat/20-reactions-for-roles #59
@ -38,7 +38,7 @@ export default class RoleController {
|
||||
.catch(error => { logger.error(`Could not find announcement_role with id ${config.bot.announcement_role}. Error: ${error}`, { requestId, guildId: guild.id }) })
|
||||
}
|
||||
|
||||
public async manageAnnouncementRoles(guild: Guild, reaction: MessageReaction, requestId: string) {
|
||||
public async assignAnnouncementRolesFromReactions(guild: Guild, reaction: MessageReaction, requestId: string) {
|
||||
const guildId = guild.id
|
||||
logger.info("Managing roles", { guildId, requestId })
|
||||
|
||||
|
||||
|
@ -176,7 +176,7 @@ export class ExtendedClient extends Client {
|
||||
const reactions = message.reactions.resolve("🎫")
|
||||
//logger.debug(`reactions: ${JSON.stringify(reactions, null, 2)}`, { guildId: guild.id, requestId })
|
||||
if (reactions) {
|
||||
this.roleController.manageAnnouncementRoles(message.guild, reactions, requestId)
|
||||
this.roleController.assignAnnouncementRolesFromReactions(message.guild, reactions, requestId)
|
||||
} else {
|
||||
logger.error("Did not get reactions! Aborting!", { guildId: guild.id, requestId })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
method called reactions but parameter is singular
1f372b0aac