commands

package
v0.0.0-...-e50f7b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 2 Imported by: 0

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

func UnregisterCommands(s *dgo.Session) []error

UnregisterCommands to the bot `s` must not be closed (`s.Close()` must not be called before this function)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL