bundle.discord.cogs.music.queue

Track queue – pure data operations, no Discord API.

Classes

TrackQueue

Ordered track list with a cursor.

Module Contents

class bundle.discord.cogs.music.queue.TrackQueue

Ordered track list with a cursor.

resolving: bool = False
waiting: bool = False
property tracks: list[bundle.youtube.track.YoutubeTrackData]
property index: int
property current: bundle.youtube.track.YoutubeTrackData | None
property has_next: bool
property has_prev: bool
enqueue(track: bundle.youtube.track.YoutubeTrackData) int

Append a track; return its index.

advance(delta: int = 1) bool

Move cursor by delta. Return True if the new position is valid.

shuffle() None

Shuffle remaining tracks after the current cursor position.

pos_str() str