Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module interface { // Run takes in a string of arguments of dynamic length. // Each module responsible for sending their own discord Objects. // Returns: // *discordgo.MessageEmbed: Empty if nothing to return // interface{}: any state to be saved with the messageID Run(m *discordgo.MessageCreate, s *discordgo.Session, args []string) error }
Module Interface
type Modules ¶
type Modules struct { // messageID -> []Structs MessageStore map[string]interface{} // CommandName -> CommandModule ModuleStore map[string]Module HandlerStore []interface{} }
Modules gives access to the global store for all commands
func (*Modules) AddHandler ¶
func (m *Modules) AddHandler(handler interface{})
AddHandler registers a handler / listener to the discord bot.
Click to show internal directories.
Click to hide internal directories.