From 85c1aaf1c77879c08ea582913bc31c2fe135033e Mon Sep 17 00:00:00 2001 From: EvieePy Date: Sun, 4 Feb 2024 20:13:07 +1000 Subject: [PATCH] More docs on Queue. --- wavelink/queue.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wavelink/queue.py b/wavelink/queue.py index 2a4ce26d..ea4bfd67 100644 --- a/wavelink/queue.py +++ b/wavelink/queue.py @@ -134,6 +134,9 @@ def count(self) -> int: ------- int The amount of tracks in the queue. + + + .. versionadded:: 3.2.0 """ return len(self) @@ -146,6 +149,9 @@ def is_empty(self) -> bool: ------- bool Whether the queue is empty. + + + .. versionadded:: 3.2.0 """ return not bool(self) @@ -288,6 +294,9 @@ def get_at(self, index: int, /) -> Playable: The queue was empty when retrieving a track. IndexError The index was out of range for the current queue. + + + .. versionadded:: 3.2.0 """ if not self: @@ -316,6 +325,9 @@ def put_at(self, index: int, value: Playable, /) -> None: ------ TypeError The track was not a :class:`wavelink.Playable`. + + + .. versionadded:: 3.2.0 """ self._check_compatibility(value) self._items.insert(index, value) @@ -468,6 +480,11 @@ def delete(self, index: int, /) -> None: # Deletes the track at index 1 (The second track). queue.delete(1) + + + .. versionchanged:: 3.2.0 + + The method is no longer a coroutine. """ del self._items[index]