commands

package
v0.0.0-...-bd45f38 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 1 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 interface {
	Base() *discordgo.ApplicationCommand
	Exec(s *discordgo.Session, i *discordgo.InteractionCreate)
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(session *discordgo.Session) (h *Handler)

func (*Handler) Register

func (h *Handler) Register(c Command)

type Info

type Info struct {
	*discordgo.ApplicationCommand
}

func NewInfo

func NewInfo() *Info

func (*Info) Base

func (c *Info) Base() *discordgo.ApplicationCommand

func (*Info) Exec

Jump to

Keyboard shortcuts

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