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,10 +1,18 @@
from typing import TypedDict
from typing import TypedDict, Any
class Guild(TypedDict):
tracks_list: list[dict[str, Any]]
previous_tracks_list: list[dict[str, Any]]
current_track: dict[str, Any] | None
is_stopped: bool
allow_explicit: bool
allow_menu: bool
class ExplicitGuild(TypedDict):
_id: str
_id: int
tracks_list: list[dict[str, Any]]
previous_tracks_list: list[dict[str, Any]]
current_track: dict[str, Any] | None
is_stopped: bool # Prevents the `after` callback of play_track
allow_explicit: bool
allow_menu: bool
allow_menu: bool # Is /toggle mnu command available