mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-12 10:32:04 +03:00
Initial commit
This commit is contained in:
25
MusicBot/database/user.py
Normal file
25
MusicBot/database/user.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from typing import TypedDict
|
||||
|
||||
class TrackInfo(TypedDict):
|
||||
track_id: str
|
||||
title: str
|
||||
avail: bool
|
||||
artists: str
|
||||
albums: str
|
||||
duration: int
|
||||
explicit: bool
|
||||
bg_video: str | None
|
||||
|
||||
class User(TypedDict):
|
||||
ym_token: str | None
|
||||
tracks_list: list[TrackInfo]
|
||||
current_track: int | None
|
||||
is_stopped: bool
|
||||
|
||||
class ExplicitUser(TypedDict):
|
||||
_id: str
|
||||
ym_token: str | None
|
||||
tracks_list: list[TrackInfo]
|
||||
current_track: int | None
|
||||
is_stopped: bool # Prevents callback of play_track
|
||||
|
||||
Reference in New Issue
Block a user