Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutocompleteHandler ¶
type AutocompleteHandler func(event *events.AutocompleteInteractionCreate) error
type Command ¶
type Command struct { Create discord.ApplicationCommandCreate Check Check[*events.ApplicationCommandInteractionCreate] AutocompleteCheck Check[*events.AutocompleteInteractionCreate] CommandHandlers map[string]CommandHandler AutocompleteHandlers map[string]AutocompleteHandler }
type CommandHandler ¶
type CommandHandler func(event *events.ApplicationCommandInteractionCreate) error
type Component ¶
type Component struct { Name string Check Check[*events.ComponentInteractionCreate] Handler ComponentHandler }
type ComponentHandler ¶
type ComponentHandler func(event *events.ComponentInteractionCreate) error
type Handler ¶
type Handler struct { Logger log.Logger Commands map[string]Command Components map[string]Component Modals map[string]Modal }
func (*Handler) AddCommands ¶
func (*Handler) AddComponents ¶
func (*Handler) SyncCommands ¶
type Modal ¶
type Modal struct { Name string Check Check[*events.ModalSubmitInteractionCreate] Handler ModalHandler }
type ModalHandler ¶
type ModalHandler func(event *events.ModalSubmitInteractionCreate) error
Click to show internal directories.
Click to hide internal directories.