discord

package
v2.0.0-...-bf7248e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandCreate

type CommandCreate func(i *Interaction)

type InterActionsCreateFunc

type InterActionsCreateFunc func(s *discordgo.Session, i *discordgo.InteractionCreate)

type Interaction

type Interaction struct {
	*discordgo.Interaction
	// contains filtered or unexported fields
}

func (*Interaction) GetSession

func (i *Interaction) GetSession() *discordgo.Session

func (*Interaction) SendChannelEmbeds

func (i *Interaction) SendChannelEmbeds(embeds []*discordgo.MessageEmbed) error

func (*Interaction) SendChannelMessage

func (i *Interaction) SendChannelMessage(msg string) error

func (*Interaction) SendInteractionResponseEmbeds

func (i *Interaction) SendInteractionResponseEmbeds(embeds []*discordgo.MessageEmbed) error

func (*Interaction) SendInteractionResponseMessage

func (i *Interaction) SendInteractionResponseMessage(msg string) error

type Session

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

func NewSession

func NewSession(token string, appID, guildID string, logger zLogger.ZLogger) (*Session, error)

func (*Session) ApplicationCommandCreate

func (d *Session) ApplicationCommandCreate(createFunc CommandCreate, cmd *discordgo.ApplicationCommand, options ...discordgo.RequestOption) error

func (*Session) Close

func (d *Session) Close() error

func (*Session) NewInteraction

func (d *Session) NewInteraction(interaction *discordgo.Interaction) *Interaction

func (*Session) Open

func (d *Session) Open() error

Jump to

Keyboard shortcuts

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