Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentConstructor ¶
ArgumentConstructor defines the structure of an argument
type Arguments ¶
type Arguments map[string]ArgumentConstructor
Arguments defines the structure of a collection of arguments
type Callback ¶
type Callback func(s *discordgo.Session, m *discordgo.MessageCreate, a Arguments)
Callback defines the structure of the callback function for a command
type Router ¶
Router defines the structure of the Router
func (*Router) AddCommand ¶
AddCommand Adds a new command to the router
func (*Router) OnMessageCreateHandler ¶
func (r *Router) OnMessageCreateHandler(s *discordgo.Session, m *discordgo.MessageCreate)
OnMessageCreateHandler handles the message create event
Click to show internal directories.
Click to hide internal directories.