Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []*dgo.ApplicationCommand{
repositoryLinkCommand,
alumniLinkCommand,
socialNetworkCommand,
}
commands register to the bot
Functions ¶
func CommandsHandlers ¶
func CommandsHandlers(s *dgo.Session, i *dgo.InteractionCreate)
CommandsHandlers is the handler of slash commands
func RegisterCommands ¶
func RegisterCommands(s *dgo.Session, commands []*dgo.ApplicationCommand) ([]*dgo.ApplicationCommand, []error)
RegisterCommands to the bot `s` must be opened (`s.Open()` must be called before this function)
func UnregisterCommands ¶
UnregisterCommands to the bot `s` must not be closed (`s.Close()` must not be called before this function)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.