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 New(pg *postgres.PostgresStore, parser *parser.ActionParser, planStore store.PlanStore) *ActionHandler
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
func (*GatewayInteraction) Respond ¶
func (i *GatewayInteraction) Respond(data *discordgo.InteractionResponseData, t ...discordgo.InteractionResponseType) *discordgo.Message
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
func (*RestInteraction) Respond ¶
func (i *RestInteraction) Respond(data *discordgo.InteractionResponseData, t ...discordgo.InteractionResponseType) *discordgo.Message
Click to show internal directories.
Click to hide internal directories.