lavalink

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func New

func New(c LavalinkConfig, dc *discord.Discord, eventHandler func(any)) (*Lavalink, error)

func (*Lavalink) Close

func (t *Lavalink) Close() error

func (*Lavalink) Connect added in v1.1.0

func (t *Lavalink) Connect() error

func (*Lavalink) DecodeTrackId

func (t *Lavalink) DecodeTrackId(uid string) (*track.Info, error)

func (*Lavalink) Destroy

func (t *Lavalink) Destroy(guildID string) error

func (*Lavalink) Play

func (t *Lavalink) Play(guildID, ident string) (track.Track, error)

func (*Lavalink) SetVolume

func (t *Lavalink) SetVolume(guildID string, volume uint16) error

func (*Lavalink) Stop

func (t *Lavalink) Stop(guildID string) error

type LavalinkConfig

type LavalinkConfig struct {
	Address  string
	Password string
}

Jump to

Keyboard shortcuts

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