types

package
v0.0.0-...-8ce17bf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedInteractionResp

func EmbedInteractionResp(embed *discordgo.MessageEmbed) *discordgo.InteractionResponse

EmbedInteractionResp ...

func ErrorEmbed

func ErrorEmbed(message string) *discordgo.MessageEmbed

ErrorEmbed ...

func QueueEmbed

func QueueEmbed(songs []Song) *discordgo.MessageEmbed

QueueEmbed ...

func TextInteractionResp

func TextInteractionResp(message string) *discordgo.InteractionResponse

TextInteractionResp ...

func TrackEmbed

func TrackEmbed(message string, s Song) *discordgo.MessageEmbed

TrackEmbed ...

Types

type Dispatcher

type Dispatcher interface {
	Play(gID, vID, cmdID string, songs []Song)
	Queue(gID string) []Song
	Seek(gID string, seekTime int) (string, error)
	SkipTo(gID string, pos int) (string, error)
	Stop(gID string) (string, error)
	Skip(gID string) (string, error)
	Pause(gID string) (string, error)
	Resume(gID string) (string, error)
}

type Extractor

type Extractor interface {
	Get(query string) ([]Song, error)
}

type Song

type Song struct {
	//Title of the song including author
	Title string
	//Path to the file
	Path string
	//Link to YouTube
	Link string
	//Requester is the user who requested the song
	Requester *discordgo.User
}

Song represents a playable track.

Jump to

Keyboard shortcuts

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