move manage announce roles to role controller
This commit is contained in:
@ -2,7 +2,6 @@ import { ApplicationCommandDataResolvable, Client, ClientOptions, Collection, Gu
|
||||
import fs from 'fs';
|
||||
import { ScheduledTask, schedule } from "node-cron";
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { manageAnnouncementRoles } from "../commands/announce";
|
||||
import { config } from "../configuration";
|
||||
import { Maybe } from "../interfaces";
|
||||
import { JellyfinHandler } from "../jellyfin/handler";
|
||||
@ -177,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) {
|
||||
manageAnnouncementRoles(message.guild, reactions, requestId)
|
||||
this.roleController.manageAnnouncementRoles(message.guild, reactions, requestId)
|
||||
} else {
|
||||
logger.error("Did not get reactions! Aborting!", { guildId: guild.id, requestId })
|
||||
}
|
||||
|
Reference in New Issue
Block a user