Versions in this module Expand all Collapse all v0 v0.2.0 Oct 18, 2026 v0.1.0 Oct 16, 2026 Changes in this version + const DefaultBaseURL + type Cluster struct + Count int + ID int + type Error struct + Err error + Kind Kind + Retryable bool + Status int + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Kind string + const KindCommands + const KindHeartbeat + const KindStats + type Option func(*config) + func OnDisabled(fn func(kind Kind, status int, reason string)) Option + func OnError(fn func(err *Error)) Option + func OnPosted(fn func(kind Kind, status int)) Option + func WithBaseURL(url string) Option + func WithBotID(id string) Option + func WithCluster(id, count int) Option + func WithHeartbeatInterval(d time.Duration) Option + func WithLogger(l *slog.Logger) Option + func WithPostEmptyCommands() Option + func WithServerCount(fn func(ctx context.Context) (int, error)) Option + func WithStatsInterval(d time.Duration) Option + func WithoutCommands() Option + func WithoutHeartbeat() Option + func WithoutStats() Option + type Poster struct + func Autopost(session *discordgo.Session, token string, opts ...Option) *Poster + func AutopostShards(sessions []*discordgo.Session, token string, opts ...Option) *Poster + func (p *Poster) PostCommands(ctx context.Context) (res Result) + func (p *Poster) PostHeartbeat(ctx context.Context) (res Result) + func (p *Poster) PostStats(ctx context.Context) (res Result) + func (p *Poster) Stop() + type Result struct + OK bool + Skipped string + Status int