Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 85c1aaf

Browse files
committed
More docs on Queue.
1 parent 70c8009 commit 85c1aaf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

wavelink/queue.py

+17
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def count(self) -> int:
134134
-------
135135
int
136136
The amount of tracks in the queue.
137+
138+
139+
.. versionadded:: 3.2.0
137140
"""
138141

139142
return len(self)
@@ -146,6 +149,9 @@ def is_empty(self) -> bool:
146149
-------
147150
bool
148151
Whether the queue is empty.
152+
153+
154+
.. versionadded:: 3.2.0
149155
"""
150156

151157
return not bool(self)
@@ -288,6 +294,9 @@ def get_at(self, index: int, /) -> Playable:
288294
The queue was empty when retrieving a track.
289295
IndexError
290296
The index was out of range for the current queue.
297+
298+
299+
.. versionadded:: 3.2.0
291300
"""
292301

293302
if not self:
@@ -316,6 +325,9 @@ def put_at(self, index: int, value: Playable, /) -> None:
316325
------
317326
TypeError
318327
The track was not a :class:`wavelink.Playable`.
328+
329+
330+
.. versionadded:: 3.2.0
319331
"""
320332
self._check_compatibility(value)
321333
self._items.insert(index, value)
@@ -468,6 +480,11 @@ def delete(self, index: int, /) -> None:
468480
469481
# Deletes the track at index 1 (The second track).
470482
queue.delete(1)
483+
484+
485+
.. versionchanged:: 3.2.0
486+
487+
The method is no longer a coroutine.
471488
"""
472489

473490
del self._items[index]

0 commit comments

Comments
 (0)