mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-14 03:31:55 +03:00
impr: Rework QueueView.
This commit is contained in:
@@ -20,9 +20,6 @@ guilds: AsyncCollection[ExplicitGuild] = db.guilds
|
||||
class BaseUsersDatabase:
|
||||
DEFAULT_USER = User(
|
||||
ym_token=None,
|
||||
playlists=[],
|
||||
playlists_page=0,
|
||||
queue_page=0,
|
||||
vibe_batch_id=None,
|
||||
vibe_type=None,
|
||||
vibe_id=None,
|
||||
|
||||
@@ -8,9 +8,6 @@ VibeSettingsOptions: TypeAlias = Literal[
|
||||
|
||||
class User(TypedDict, total=False): # Don't forget to change base.py if you add a new field
|
||||
ym_token: str | None
|
||||
playlists: list[tuple[str, int]]
|
||||
playlists_page: int
|
||||
queue_page: int
|
||||
vibe_batch_id: str | None
|
||||
vibe_type: Literal['track', 'album', 'artist', 'playlist', 'user'] | None
|
||||
vibe_id: str | int | None
|
||||
@@ -19,9 +16,6 @@ class User(TypedDict, total=False): # Don't forget to change base.py if you add
|
||||
class ExplicitUser(TypedDict):
|
||||
_id: int
|
||||
ym_token: str | None
|
||||
playlists: list[tuple[str, int]] # name / tracks count
|
||||
playlists_page: int
|
||||
queue_page: int
|
||||
vibe_batch_id: str | None
|
||||
vibe_type: Literal['track', 'album', 'artist', 'playlist', 'user'] | None
|
||||
vibe_id: str | int | None
|
||||
|
||||
Reference in New Issue
Block a user