Documentation
¶
Index ¶
- type InteractionHandler
- type InteractionHandlerFunc
- type Mux
- func (m *Mux) AddInteractionHandler(kind discordgo.InteractionType, id string, handler InteractionHandler)
- func (m *Mux) ApplicationCommand(id string, handler InteractionHandler)
- func (m *Mux) ApplicationCommandAutoComplete(id string, handler InteractionHandler)
- func (m *Mux) HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (m *Mux) MessageComponent(id string, handler InteractionHandler)
- func (m *Mux) ModalSubmit(id string, handler InteractionHandler)
- type ResponseWriter
- func (r *ResponseWriter) ClearComponentRows()
- func (r *ResponseWriter) ComponentRow(comps ...discordgo.MessageComponent)
- func (r *ResponseWriter) Embed(embed *discordgo.MessageEmbed)
- func (r *ResponseWriter) Ephemral()
- func (r *ResponseWriter) Response() *discordgo.InteractionResponse
- func (r *ResponseWriter) Text(content string)
- func (r *ResponseWriter) Type(itype discordgo.InteractionResponseType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteractionHandler ¶
type InteractionHandler interface {
HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
}
type InteractionHandlerFunc ¶
type InteractionHandlerFunc func(s *discordgo.Session, i *discordgo.InteractionCreate)
func (InteractionHandlerFunc) HandleInteraction ¶
func (f InteractionHandlerFunc) HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) AddInteractionHandler ¶
func (m *Mux) AddInteractionHandler(kind discordgo.InteractionType, id string, handler InteractionHandler)
func (*Mux) ApplicationCommand ¶
func (m *Mux) ApplicationCommand(id string, handler InteractionHandler)
func (*Mux) ApplicationCommandAutoComplete ¶
func (m *Mux) ApplicationCommandAutoComplete(id string, handler InteractionHandler)
func (*Mux) HandleInteraction ¶
func (m *Mux) HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*Mux) MessageComponent ¶
func (m *Mux) MessageComponent(id string, handler InteractionHandler)
func (*Mux) ModalSubmit ¶
func (m *Mux) ModalSubmit(id string, handler InteractionHandler)
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func NewResponseWriter ¶
func NewResponseWriter() *ResponseWriter
func (*ResponseWriter) ClearComponentRows ¶
func (r *ResponseWriter) ClearComponentRows()
func (*ResponseWriter) ComponentRow ¶
func (r *ResponseWriter) ComponentRow(comps ...discordgo.MessageComponent)
func (*ResponseWriter) Embed ¶
func (r *ResponseWriter) Embed(embed *discordgo.MessageEmbed)
func (*ResponseWriter) Ephemral ¶
func (r *ResponseWriter) Ephemral()
func (*ResponseWriter) Response ¶
func (r *ResponseWriter) Response() *discordgo.InteractionResponse
func (*ResponseWriter) Text ¶
func (r *ResponseWriter) Text(content string)
func (*ResponseWriter) Type ¶
func (r *ResponseWriter) Type(itype discordgo.InteractionResponseType)
Click to show internal directories.
Click to hide internal directories.