dgimux

package module
v0.0.0-...-ed0fff3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 1 Imported by: 2

README

dgimux

Interaction routing tool for discordgo

Documentation

Index

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

type Mux

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

func NewRouter

func NewRouter() *Mux

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 (*ResponseWriter) Text

func (r *ResponseWriter) Text(content string)

func (*ResponseWriter) Type

Jump to

Keyboard shortcuts

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