bundle.discord.cogs.music.queue =============================== .. py:module:: bundle.discord.cogs.music.queue .. autoapi-nested-parse:: Track queue -- pure data operations, no Discord API. Classes ------- .. autoapisummary:: bundle.discord.cogs.music.queue.TrackQueue Module Contents --------------- .. py:class:: TrackQueue Ordered track list with a cursor. .. py:attribute:: resolving :type: bool :value: False .. py:attribute:: waiting :type: bool :value: False .. py:property:: tracks :type: list[bundle.youtube.track.YoutubeTrackData] .. py:property:: index :type: int .. py:property:: current :type: bundle.youtube.track.YoutubeTrackData | None .. py:property:: has_next :type: bool .. py:property:: has_prev :type: bool .. py:method:: enqueue(track: bundle.youtube.track.YoutubeTrackData) -> int Append a track; return its index. .. py:method:: advance(delta: int = 1) -> bool Move cursor by *delta*. Return True if the new position is valid. .. py:method:: shuffle() -> None Shuffle remaining tracks after the current cursor position. .. py:method:: pos_str() -> str