impr: Update database to use guild ids.

This commit is contained in:
Lemon4ksan
2025-01-09 12:51:25 +03:00
parent 7df90b48df
commit 7d462442cc
5 changed files with 158 additions and 89 deletions

View File

@@ -1,25 +1,8 @@
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
_id: int
ym_token: str | None
tracks_list: list[TrackInfo]
current_track: int | None
is_stopped: bool # Prevents callback of play_track