help

package
v0.0.0-...-fb5ee28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	commands.Metadata
	// contains filtered or unexported fields
}

func (*Command) AddCommand

func (c *Command) AddCommand(cmd commands.Metadata)

func (Command) GetDescription

func (Command) GetDescription() string

func (Command) GetHandler

func (c Command) GetHandler(session *discordgo.Session, interaction *discordgo.InteractionCreate)

func (Command) GetName

func (Command) GetName() string

func (Command) GetOptions

func (Command) GetOptions() []*discordgo.ApplicationCommandOption

type Registerer

type Registerer struct {
	commands.Registerer
	// contains filtered or unexported fields
}

func NewRegister

func NewRegister(c *Command) Registerer

NewRegister create a register with a command that must be the help command with others commands registered

func (Registerer) GetCommands

func (h Registerer) GetCommands() []commands.Metadata

Jump to

Keyboard shortcuts

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