From 44d45b739450ddd7ddb96c35f2989286229ab0d1 Mon Sep 17 00:00:00 2001 From: Layla Date: Sun, 14 Jan 2024 18:49:33 +0100 Subject: [PATCH] Deprecate Recurring Events (!7) Recurring events are now a native Discord feature, so deprecating support in BirdBot. Co-authored-by: Layla Manley Reviewed-on: https://gitea.layla.gg/layla/birdbot/pulls/7 --- 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,