mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-11 20:01:38 +03:00
26 lines
732 B
Python
26 lines
732 B
Python
from typing import TypedDict, Any
|
|
|
|
class Guild(TypedDict, total=False):
|
|
next_tracks: list[dict[str, Any]]
|
|
previous_tracks: list[dict[str, Any]]
|
|
current_track: dict[str, Any] | None
|
|
current_player: int | None
|
|
is_stopped: bool
|
|
allow_explicit: bool
|
|
always_allow_menu: bool
|
|
disable_vote: bool
|
|
shuffle: bool
|
|
repeat: bool
|
|
|
|
class ExplicitGuild(TypedDict):
|
|
_id: int
|
|
next_tracks: list[dict[str, Any]]
|
|
previous_tracks: list[dict[str, Any]]
|
|
current_track: dict[str, Any] | None
|
|
current_player: int | None
|
|
is_stopped: bool # Prevents the `after` callback of play_track
|
|
allow_explicit: bool
|
|
always_allow_menu: bool
|
|
disable_vote: bool
|
|
shuffle: bool
|
|
repeat: bool |