Documentation ¶
Index ¶
- func ConfigCommandOptions() mod.ConfigCommandOptions
- func Provider(logger *slog.Logger) (mod.ModuleProviderResult, error)
- type ChannelConfig
- type Module
- func (m *Module) Config() []ChannelConfig
- func (m *Module) Name() string
- func (m *Module) ReloadConfig(ctx context.Context, discord *discordgo.Session, db *store.Queries) error
- func (m *Module) SetConfig(config []ChannelConfig)
- 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 ChannelConfig struct {
ID string `json:"id"`
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) Config ¶
func (m *Module) Config() []ChannelConfig
func (*Module) ReloadConfig ¶
func (*Module) SetConfig ¶
func (m *Module) SetConfig(config []ChannelConfig)
Click to show internal directories.
Click to hide internal directories.