bot

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token          string
	GuildID        snowflake.ID
	DefaultChannel snowflake.ID

	NodeName     string
	NodeAddress  string
	NodePassword string
	NodeSecure   bool
)

Functions

func EditDeferredReply

func EditDeferredReply(content string, e *events.ApplicationCommandInteractionCreate) error

func Run

func Run()

Types

type Bot

type Bot struct {
	Client   bot.Client
	Lavalink disgolink.Client
	Handlers map[string]func(e *events.ApplicationCommandInteractionCreate, d discord.SlashCommandInteractionData) error
	Queue    *Queue
}

type Queue

type Queue struct {
	Tracks []lavalink.Track
	Type   QueueType
}

func (*Queue) Add

func (q *Queue) Add(track ...lavalink.Track)

func (*Queue) Clear

func (q *Queue) Clear()

func (*Queue) Next

func (q *Queue) Next() (lavalink.Track, bool)

func (*Queue) Shuffle

func (q *Queue) Shuffle()

type QueueType

type QueueType string
const (
	QueueTypeNormal      QueueType = "normal"
	QueueTypeRepeatTrack QueueType = "repeat_track"
	QueueTypeRepeatQueue QueueType = "repeat_queue"
)

func (QueueType) String

func (q QueueType) String() string

Jump to

Keyboard shortcuts

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