interactions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventNoGuildID = errors.New("no guild id found in event")

Functions

func EphemeralMessageContent

func EphemeralMessageContent(content string) discord.MessageCreate

func EphemeralMessageContentf

func EphemeralMessageContentf(content string, fmtArgs ...any) discord.MessageCreate

func SendDirectMessage

func SendDirectMessage(client *bot.Client, user discord.User, messageCreate discord.MessageCreate) (
	*discord.Message, error,
)

Types

type AppCommandRegisterer

type AppCommandRegisterer interface {
	Register(r *handler.Mux) []discord.ApplicationCommandCreate
}

type ApplicationCommandRegisterFunc

type ApplicationCommandRegisterFunc func(r *handler.Mux) []discord.ApplicationCommandCreate

func (ApplicationCommandRegisterFunc) Register

type DMError

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

func NewDMError

func NewDMError(dmChannelCreated, messageSent bool, inner error) *DMError

func (*DMError) Error

func (e *DMError) Error() string

func (*DMError) Unwrap

func (e *DMError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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