util

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommonComponent added in v1.7.0

func BuildCommonComponent(p *domain.Player, q *domain.Queue) []discordgo.MessageComponent

func BuildNPComponent added in v1.6.0

func BuildNPComponent(p *domain.Player, q *domain.Queue) []discordgo.MessageComponent

func BuildNPEmbed added in v1.6.0

func BuildNPEmbed(s *discordgo.Session, p *domain.Player, q *domain.Queue) ([]*discordgo.MessageEmbed, error)

func BuildQueueComponent added in v1.7.0

func BuildQueueComponent(p *domain.Player, q *domain.Queue, page int) []discordgo.MessageComponent

func BuildQueueEmbed added in v1.7.0

func BuildQueueEmbed(p *domain.Player, q *domain.Queue, items []*domain.Music, page int) []*discordgo.MessageEmbed

func InteractionName added in v1.6.0

func InteractionName(i *discordgo.InteractionCreate) string

func IsPlayerReady

func IsPlayerReady(p *domain.Player) bool

func IsSameVC

func IsSameVC(p *domain.Player, vs *discordgo.VoiceState) bool

func NewWorkerLogger added in v1.6.0

func NewWorkerLogger(guildID, name string) func(v ...interface{})

func ParseRelativePosOption

func ParseRelativePosOption(q *domain.Queue, raw string) (int, error)

func Plural

func Plural(w string, n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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