Versions in this module Expand all Collapse all v11 v11.0.1 Jun 23, 2019 v11.0.0 Jun 23, 2019 Changes in this version + var ErrResponse = errors.New("error response") + type Config struct + APIURL string + BotName string + BotPresence string + BotToken string + ClientID string + ClientSecret string + NumWorkers int + OS string + type DiscordBot interface + AddMessageHandler func(event string, handler DiscordMessageHandlerFunc) + AuthenticateAndConnect func() error + Config func() Config + Disconnect func() error + LastSequence func() int + ReconfigureHeartbeat func(context.Context, int) + Run func(context.Context) error + SendMessage func(context.Context, snowflake.Snowflake, JSONMarshaler) (*http.Response, []byte, error) + UpdateSequence func(int) bool + func NewDiscordBot(deps dependencies, conf Config) DiscordBot + type DiscordMessageHandler interface + AddHandler func(string, DiscordMessageHandlerFunc) + ConnectToBot func(DiscordBot) + HandleRequest func(wsclient.WSMessage, chan<- wsclient.WSMessage) snowflake.Snowflake + type DiscordMessageHandlerFunc func(*etfapi.Payload, wsclient.WSMessage, chan<- wsclient.WSMessage) snowflake.Snowflake + type JSONMarshaler interface + MarshalJSON func() ([]byte, error) Other modules containing this package github.com/gsmcwhirter/discord-bot-lib github.com/gsmcwhirter/discord-bot-lib/v10 github.com/gsmcwhirter/discord-bot-lib/v12 github.com/gsmcwhirter/discord-bot-lib/v13 github.com/gsmcwhirter/discord-bot-lib/v15 github.com/gsmcwhirter/discord-bot-lib/v16 github.com/gsmcwhirter/discord-bot-lib/v17 github.com/gsmcwhirter/discord-bot-lib/v18 github.com/gsmcwhirter/discord-bot-lib/v19 github.com/gsmcwhirter/discord-bot-lib/v20 github.com/gsmcwhirter/discord-bot-lib/v21 github.com/gsmcwhirter/discord-bot-lib/v22 github.com/gsmcwhirter/discord-bot-lib/v23 github.com/gsmcwhirter/discord-bot-lib/v24 github.com/gsmcwhirter/discord-bot-lib/v6 github.com/gsmcwhirter/discord-bot-lib/v7 github.com/gsmcwhirter/discord-bot-lib/v8 github.com/gsmcwhirter/discord-bot-lib/v9