interactions

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package interactions provides the functionality for handling Discord interactions. See: https://discord.com/developers/docs/interactions/receiving-and-responding

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

A Handler handles Discord interactions.

func NewHandler

func NewHandler(cfg config.Config, logger *slog.Logger) (*Handler, error)

NewHandler creates a new Handler instance.

func (*Handler) Respond

func (h *Handler) Respond(ctx context.Context, interaction discord.Interaction) discord.InteractionResponse

Respond handles an interaction and returns an interaction response.

Jump to

Keyboard shortcuts

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