Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func NewBot ¶
NewBot creates a new Bot instance. This function is used by the dependency injector to create a new Bot instance.
func (*Bot) AddMessageCreateHandler ¶ added in v1.2.0
func (b *Bot) AddMessageCreateHandler(handler MessageCreateHandler)
func (*Bot) AddReadyHandler ¶ added in v1.2.0
func (b *Bot) AddReadyHandler(handler ReadyHandler)
type MessageCreateHandler ¶ added in v1.2.0
type MessageCreateHandler interface {
Handle(*discordgo.Session, *discordgo.MessageCreate)
}
Click to show internal directories.
Click to hide internal directories.