From 944dd32d82408cfaeb5bb84a7291c4d4189696bc Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 14 Jan 2024 18:47:36 +0100 Subject: [PATCH] Deprecate recurring events --- main.go | 2 +- modules/recurring_events.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9bb2e4d..1d489e9 100644 --- a/main.go +++ b/main.go @@ -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)) } diff --git a/modules/recurring_events.go b/modules/recurring_events.go index 9bad07f..782f964 100644 --- a/modules/recurring_events.go +++ b/modules/recurring_events.go @@ -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,