Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Command string Description string Executor func(s *discordgo.Session, m *discordgo.MessageCreate) Permission int }
The command struct it defines the data to register a command
type Commander ¶
/////////////////////////////////////////////////////////// Main command handler struct. The whole library // is based on it. It takes all required params // needed to execute a command and handle it // ///////////////////////////////////////////////////////////
func New ¶
creates a new instance of the command handler returns the instance which can be used for registration and execution
Source Files ¶
Click to show internal directories.
Click to hide internal directories.