Documentation ¶
Index ¶
- Constants
- func AddQueueTracks(ctx context.Context, client disgolink.RestClient, sessionID string, ...) error
- func GetHistory(ctx context.Context, client disgolink.RestClient, sessionID string, ...) ([]lavalink.Track, error)
- func UpdateQueue(ctx context.Context, client disgolink.RestClient, sessionID string, ...) error
- type LavaQueueEventListener
- type Plugin
- type Queue
- type QueueEndEvent
- type QueueTrack
- type QueueType
- type QueueUpdate
Constants ¶
View Source
const (
EventTypeQueueEnd lavalink.EventType = "QueueEndEvent"
)
Variables ¶
This section is empty.
Functions ¶
func AddQueueTracks ¶
func AddQueueTracks(ctx context.Context, client disgolink.RestClient, sessionID string, guildID snowflake.ID, tracks []QueueTrack) error
func GetHistory ¶
func UpdateQueue ¶
func UpdateQueue(ctx context.Context, client disgolink.RestClient, sessionID string, guildID snowflake.ID, queue QueueUpdate) error
Types ¶
type LavaQueueEventListener ¶
type LavaQueueEventListener interface {
OnQueueEnd(player disgolink.Player, event QueueEndEvent)
}
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewWithLogger ¶
func (*Plugin) EventPlugins ¶
func (p *Plugin) EventPlugins() []disgolink.EventPlugin
type QueueEndEvent ¶
type QueueEndEvent struct {
GuildID_ snowflake.ID `json:"guild_id"`
}
func (QueueEndEvent) GuildID ¶
func (e QueueEndEvent) GuildID() snowflake.ID
func (QueueEndEvent) Op ¶
func (QueueEndEvent) Op() lavalink.Op
func (QueueEndEvent) Type ¶
func (QueueEndEvent) Type() lavalink.EventType
type QueueTrack ¶
type QueueUpdate ¶
type QueueUpdate struct { Type *QueueType `json:"type,omitempty"` Tracks *[]QueueTrack `json:"tracks,omitempty"` }
Click to show internal directories.
Click to hide internal directories.