mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-12 14:42:03 +03:00
impr: Enforce menu view, vote improvement and bug fixes.
This commit is contained in:
@@ -4,8 +4,8 @@ class MessageVotes(TypedDict):
|
||||
positive_votes: list[int]
|
||||
negative_votes: list[int]
|
||||
total_members: int
|
||||
action: Literal['next', 'add_track', 'add_album', 'add_artist', 'add_playlist']
|
||||
vote_content: dict[str, Any] | list[dict[str, Any]] | None
|
||||
action: Literal['next', 'play/pause', 'repeat', 'shuffle', 'previous', 'add_track', 'add_album', 'add_artist', 'add_playlist']
|
||||
vote_content: Any | None
|
||||
|
||||
class Guild(TypedDict, total=False):
|
||||
next_tracks: list[dict[str, Any]]
|
||||
@@ -14,12 +14,9 @@ class Guild(TypedDict, total=False):
|
||||
current_menu: int | None
|
||||
is_stopped: bool
|
||||
always_allow_menu: bool
|
||||
allow_connect: bool
|
||||
vote_next_track: bool
|
||||
vote_add_track: bool
|
||||
vote_add_album: bool
|
||||
vote_add_artist: bool
|
||||
vote_add_playlist: bool
|
||||
allow_change_connect: bool
|
||||
vote_switch_track: bool
|
||||
vote_add: bool
|
||||
shuffle: bool
|
||||
repeat: bool
|
||||
votes: dict[str, MessageVotes]
|
||||
@@ -34,12 +31,9 @@ class ExplicitGuild(TypedDict):
|
||||
current_menu: int | None
|
||||
is_stopped: bool # Prevents the `after` callback of play_track
|
||||
always_allow_menu: bool
|
||||
allow_connect: bool
|
||||
vote_next_track: bool
|
||||
vote_add_track: bool
|
||||
vote_add_album: bool
|
||||
vote_add_artist: bool
|
||||
vote_add_playlist: bool
|
||||
allow_change_connect: bool
|
||||
vote_switch_track: bool
|
||||
vote_add: bool
|
||||
shuffle: bool
|
||||
repeat: bool
|
||||
votes: dict[str, MessageVotes]
|
||||
|
||||
Reference in New Issue
Block a user