Documentation ¶
Index ¶
- type CommandManager
- func (dcm *CommandManager) Register(command interactable.Command)
- func (dcm *CommandManager) RegisterCommandsWithDiscord(appId discord.Snowflake, botClient *client.BotClient) error
- func (dcm *CommandManager) RouteInteraction(itx *discord.Interaction) (discord.InteractionResponse, error)
- func (dcm *CommandManager) Type() interaction_type.InteractionType
- type ComponentManager
- type InteractionManager
- type ModalManager
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 (*CommandManager) RouteInteraction ¶
func (dcm *CommandManager) RouteInteraction(itx *discord.Interaction) (discord.InteractionResponse, error)
func (*CommandManager) Type ¶
func (dcm *CommandManager) Type() interaction_type.InteractionType
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)
Click to show internal directories.
Click to hide internal directories.