handler

package
v0.0.0-...-9b2646f Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionHandler

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

func New

func (*ActionHandler) HandleActionInteraction

func (m *ActionHandler) HandleActionInteraction(s *discordgo.Session, i Interaction) error

type GatewayInteraction

type GatewayInteraction struct {
	Responded bool
	Session   *discordgo.Session
	Inner     *discordgo.Interaction
}

func (*GatewayInteraction) HasResponded

func (i *GatewayInteraction) HasResponded() bool

func (*GatewayInteraction) Interaction

func (i *GatewayInteraction) Interaction() *discordgo.Interaction

type Interaction

type Interaction interface {
	Interaction() *discordgo.Interaction
	HasResponded() bool
	Respond(data *discordgo.InteractionResponseData, t ...discordgo.InteractionResponseType) *discordgo.Message
}

type RestInteraction

type RestInteraction struct {
	Responded       bool
	InitialResponse chan *discordgo.InteractionResponse
	Session         *discordgo.Session
	Inner           *discordgo.Interaction
}

func (*RestInteraction) HasResponded

func (i *RestInteraction) HasResponded() bool

func (*RestInteraction) Interaction

func (i *RestInteraction) Interaction() *discordgo.Interaction

Jump to

Keyboard shortcuts

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