Files

47 lines
1.4 KiB
Python

from typing import TypedDict, Literal, Any
class MessageVotes(TypedDict):
positive_votes: list[int]
negative_votes: list[int]
total_members: int
action: Literal[
'next', 'play/pause', 'stop', 'repeat', 'shuffle', 'previous', 'add_track',
'add_album', 'add_artist', 'add_playlist', 'vibe_station', 'clear_queue'
]
vote_content: Any | None
class Guild(TypedDict, total=False): # Don't forget to change base.py if you add a new field
next_tracks: list[dict[str, Any]]
previous_tracks: list[dict[str, Any]]
current_track: dict[str, Any] | None
current_menu: int | None
is_stopped: bool # Prevents the `after` callback of play_track
allow_change_connect: bool
vote_switch_track: bool
vote_add: bool
shuffle: bool
repeat: bool
votes: dict[str, MessageVotes]
vibing: bool
current_viber_id: int | None
use_single_token: bool
single_token_uid: int | None
class ExplicitGuild(TypedDict):
_id: int
next_tracks: list[dict[str, Any]]
previous_tracks: list[dict[str, Any]]
current_track: dict[str, Any] | None
current_menu: int | None
is_stopped: bool
allow_change_connect: bool
vote_switch_track: bool
vote_add: bool
shuffle: bool
repeat: bool
votes: dict[str, MessageVotes]
vibing: bool
current_viber_id: int | None
use_single_token: bool
single_token_uid: int | None