Documentation ¶
Index ¶
Constants ¶
View Source
const GlobalCommandGuildID = "-1"
Variables ¶
View Source
var ( CommandsFactories = map[string]CommandFactory{} Commands = map[string]*discordgo.ApplicationCommand{} CommandHandlers = map[string]CommandHandler{} )
Functions ¶
func GetDuplicateCommands ¶ added in v0.8.20
func GetDuplicateCommands(in []*discordgo.ApplicationCommand) []*discordgo.ApplicationCommand
Types ¶
type Cmds ¶
type Cmds struct {
// contains filtered or unexported fields
}
func (*Cmds) RegisterGlobalCommands ¶ added in v0.8.20
func (*Cmds) RemoveGuildCommands ¶ added in v0.8.20
type CommandFactory ¶ added in v0.8.20
type CommandFactory = func(cfg *config.Config) (*discordgo.ApplicationCommand, CommandHandler, error)
type CommandHandler ¶ added in v0.8.20
type CommandHandler = func(s *discordgo.Session, i *discordgo.InteractionCreate)
func NewFivenetCommand ¶ added in v0.8.20
func NewFivenetCommand(cfg *config.Config) (*discordgo.ApplicationCommand, CommandHandler, error)
func NewHandleFivenetCommand ¶ added in v0.8.20
func NewHandleFivenetCommand(url string) CommandHandler
Click to show internal directories.
Click to hide internal directories.