slashCmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractionHandler

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

func NewDictDump

func NewDictDump(opt []*discordgo.ApplicationCommandInteractionDataOption) (*dictDump, error)

Types

type CommandHandler

type CommandHandler interface {
	// contains filtered or unexported methods
}

type Generator added in v0.3.0

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

func NewSlashCmdGenerator

func NewSlashCmdGenerator() *Generator

func (*Generator) AddCastOpt added in v0.3.0

func (s *Generator) AddCastOpt(ps []ceviord.Parameter) error

func (*Generator) Generate added in v0.3.0

func (s *Generator) Generate() []*discordgo.ApplicationCommand

type SlashCmds

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

func NewCmds

func NewCmds(s *discordgo.Session, guildId string, cmds []*discordgo.ApplicationCommand) (*SlashCmds, error)

func (*SlashCmds) DeleteCmds

func (sc *SlashCmds) DeleteCmds(s *discordgo.Session, guildId string) error

Jump to

Keyboard shortcuts

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