Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResponse = errors.New("no response")
ErrNoResponse is the error that should be returned by a command handler if the bot should not provide a response
Functions ¶
func GetSettings ¶
func GetSettings(gapi storage.GuildAPI, gid snowflake.Snowflake) (s storage.GuildSettings, err error)
GetSettings gets the guild configuration settings
NOTE: this cannot be called while another transaction is open
Types ¶
type Handlers ¶
type Handlers interface {
ConnectToBot(discordapi.DiscordBot)
}
Handlers is the dependency interface for a set of message handlers that connect themselves to a discord bot
func NewHandlers ¶
NewHandlers creates a new Handlers object
Click to show internal directories.
Click to hide internal directories.