Deprecate recurring events
This commit is contained in:
parent
ca9a183a52
commit
944dd32d82
2
main.go
2
main.go
@ -77,7 +77,7 @@ func main() {
|
|||||||
if cfg.Features.ManageEventChannels.IsEnabledByDefault() {
|
if cfg.Features.ManageEventChannels.IsEnabledByDefault() {
|
||||||
loader.LoadComponent(modules.NewManageEventChannelsComponent(cfg.Discord.EventCategory, cfg.Discord.ArchiveCategory, bot.Session))
|
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))
|
loader.LoadComponent(modules.NewRecurringEventsComponent(bot.Session))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ type recurringEventsModule struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewRecurringEventsComponent creates a new component instance
|
// 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 {
|
func NewRecurringEventsComponent(session *discord.Discord) common.Module {
|
||||||
return &recurringEventsModule{
|
return &recurringEventsModule{
|
||||||
session: session,
|
session: session,
|
||||||
|
Loading…
Reference in New Issue
Block a user