impr: Add player repeat and shuffle, play artist and playlist. Code optimization.

This commit is contained in:
Lemon4ksan
2025-01-12 22:14:31 +03:00
parent a108799e63
commit b79e16fddf
9 changed files with 505 additions and 253 deletions

View File

@@ -8,6 +8,8 @@ class Guild(TypedDict, total=False):
is_stopped: bool
allow_explicit: bool
allow_menu: bool
shuffle: bool
repeat: bool
class ExplicitGuild(TypedDict):
_id: int
@@ -17,4 +19,6 @@ class ExplicitGuild(TypedDict):
current_player: int | None
is_stopped: bool # Prevents the `after` callback of play_track
allow_explicit: bool
allow_menu: bool # Is /toggle menu command available
allow_menu: bool # /toggle menu is only available if there's only one user in the voice chat.
shuffle: bool
repeat: bool