mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-11 12:11:39 +03:00
feat: Basic "My Vibe" implementation.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
from typing import TypedDict
|
||||
from typing import TypedDict, Literal
|
||||
|
||||
class User(TypedDict, total=False):
|
||||
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
|
||||
|
||||
class ExplicitUser(TypedDict):
|
||||
_id: int
|
||||
@@ -12,3 +15,6 @@ class ExplicitUser(TypedDict):
|
||||
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