Documentation ¶
Index ¶
- func ConfigCommandOptions() mod.ConfigCommandOptions
- func Provider(db *store.Queries, logger *slog.Logger) (mod.ModuleProviderResult, error)
- type ChannelConfig
- type Module
- func (m *Module) Config() []ChannelConfig
- func (m *Module) DisplayedObservers(channelID string) ([]int64, bool)
- func (m *Module) Name() string
- func (m *Module) Post(discord *discordgo.Session, channelID string)
- func (m *Module) ReloadConfig(ctx context.Context, discord *discordgo.Session, db *store.Queries) error
- func (m *Module) SetConfig(config []ChannelConfig)
- func (m *Module) SetDisplayedObservers(channelID string, do []int64)
- func (m *Module) Start(ctx context.Context, discord *discordgo.Session, db *store.Queries) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigCommandOptions ¶
func ConfigCommandOptions() mod.ConfigCommandOptions
Types ¶
type ChannelConfig ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) Config ¶
func (m *Module) Config() []ChannelConfig
func (*Module) DisplayedObservers ¶
func (*Module) ReloadConfig ¶
func (*Module) SetConfig ¶
func (m *Module) SetConfig(config []ChannelConfig)
func (*Module) SetDisplayedObservers ¶
Click to show internal directories.
Click to hide internal directories.