managers

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandManager

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

func NewDapperCommandManager

func NewDapperCommandManager() CommandManager

func (*CommandManager) Register

func (dcm *CommandManager) Register(command interactable.Command)

func (*CommandManager) RegisterCommandsWithDiscord

func (dcm *CommandManager) RegisterCommandsWithDiscord(appId discord.Snowflake, botClient *client.BotClient) error

func (*CommandManager) RouteInteraction

func (dcm *CommandManager) RouteInteraction(itx *discord.Interaction) (discord.InteractionResponse, error)

func (*CommandManager) Type

type ComponentManager

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

func NewDapperComponentManager

func NewDapperComponentManager() ComponentManager

func (*ComponentManager) Register

func (dcm *ComponentManager) Register(comp interactable.Component)

func (*ComponentManager) RouteInteraction

func (dcm *ComponentManager) RouteInteraction(itx *discord.Interaction) (discord.InteractionResponse, error)

type InteractionManager

type InteractionManager interface {
	Type() interaction_type.InteractionType
	RouteInteraction(itx *discord.Interaction) discord.InteractionResponse
}

type ModalManager

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

func NewDapperModalManager

func NewDapperModalManager() ModalManager

func (*ModalManager) Register

func (dmm *ModalManager) Register(modal interactable.Modal)

func (*ModalManager) RouteInteraction

func (dmm *ModalManager) RouteInteraction(itx *discord.Interaction) (discord.InteractionResponse, error)

Jump to

Keyboard shortcuts

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