commands

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Commands        = []*discordgo.ApplicationCommand{}
	CommandHandlers = map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate){}
)

Functions

func HandleFivenetCommand

func HandleFivenetCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

Types

type Cmds

type Cmds struct {
	RegisteredCommands []*discordgo.ApplicationCommand
	// contains filtered or unexported fields
}

func New

func New(guildId string) *Cmds

func (*Cmds) Register

func (c *Cmds) Register(s *discordgo.Session) error

func (*Cmds) Unregister

func (c *Cmds) Unregister(s *discordgo.Session) error

Jump to

Keyboard shortcuts

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