Deprecate Recurring Events #7

Merged
layla merged 1 commits from feature/deprecateReccuringEvents into main 2024-01-14 18:49:34 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func main() {
if cfg.Features.ManageEventChannels.IsEnabledByDefault() {
loader.LoadComponent(modules.NewManageEventChannelsComponent(cfg.Discord.EventCategory, cfg.Discord.ArchiveCategory, bot.Session))
}
if cfg.Features.RecurringEvents.IsEnabledByDefault() {
if cfg.Features.RecurringEvents.IsEnabled() {
loader.LoadComponent(modules.NewRecurringEventsComponent(bot.Session))
}

View File

@ -13,6 +13,9 @@ type recurringEventsModule struct {
}
// NewRecurringEventsComponent creates a new component instance
//
// Deprecated: This recurring events are now a native feature in Discord,
// so this will be removed in the next version.
func NewRecurringEventsComponent(session *discord.Discord) common.Module {
return &recurringEventsModule{
session: session,