Fixed recurring events by passing through Discord session

This commit is contained in:
2023-06-10 08:44:31 +00:00
parent 91a886a81e
commit 77c1fa9b81
6 changed files with 7 additions and 198 deletions

View File

@@ -73,8 +73,8 @@ func main() {
if cfg.Features.ManageEventChannels.IsEnabledByDefault() {
loader.LoadComponent(modules.NewManageEventChannelsComponent(cfg.Discord.EventCategory, cfg.Discord.ArchiveCategory, bot.Session))
}
if cfg.Features.ReccurringEvents.IsEnabledByDefault() {
loader.LoadComponent(modules.NewRecurringEventsComponent())
if cfg.Features.RecurringEvents.IsEnabledByDefault() {
loader.LoadComponent(modules.NewRecurringEventsComponent(bot.Session))
}
if cfg.Features.RoleSelection.IsEnabledByDefault() {