commands

package
v0.0.0-...-1539235 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandCreates = []discord.ApplicationCommandCreate{
	decode,
	resolve,
	info,
	latest,
	music,
	read,
}

Functions

This section is empty.

Types

type Choices

type Choices []discord.AutocompleteChoice

func (Choices) Keywords

func (c Choices) Keywords(i int) string

func (Choices) Len

func (c Choices) Len() int

func (Choices) Less

func (c Choices) Less(i, j int) bool

func (Choices) Swap

func (c Choices) Swap(i, j int)

type Commands

type Commands struct {
	*lavalinkbot.Bot
}

func (*Commands) Decode

func (*Commands) Disconnect

func (*Commands) Effects

func (*Commands) InfoBot

func (*Commands) Latest

func (*Commands) LatestAutocomplete

func (c *Commands) LatestAutocomplete(e *handler.AutocompleteEvent) error

func (*Commands) Lyrics

func (*Commands) NowPlaying

func (*Commands) Pause

func (*Commands) Play

func (*Commands) PlayAutocomplete

func (c *Commands) PlayAutocomplete(e *handler.AutocompleteEvent) error

func (*Commands) PlayTrack

func (*Commands) Queue

func (*Commands) Read

func (*Commands) ReadAutocomplete

func (c *Commands) ReadAutocomplete(e *handler.AutocompleteEvent) error

func (*Commands) Repeat

func (*Commands) RequirePlayer

func (c *Commands) RequirePlayer(next handler.Handler) handler.Handler

func (*Commands) Resolve

func (*Commands) Resume

func (*Commands) Seek

func (*Commands) SetSponsorblock

func (*Commands) ShowSponsorblock

func (*Commands) Shuffle

func (*Commands) Skip

func (*Commands) Stop

func (*Commands) TTS

func (*Commands) Volume

type EffectType

type EffectType string
const (
	EffectTypeNone      EffectType = "none"
	EffectTypeNightcore EffectType = "nightcore"
	EffectTypeVaporwave EffectType = "vaporwave"
	EffectTypePiano     EffectType = "piano"
	EffectTypeMetal     EffectType = "metal"
	EffectTypeBassBoost EffectType = "bass-boost"
)

type UserData

type UserData struct {
	Requester  snowflake.ID `json:"requester"`
	OriginType string       `json:"origin_type"`
	OriginName string       `json:"origin_name"`
}

Jump to

Keyboard shortcuts

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