fix: Wrong to_dict conversion

This commit is contained in:
Lemon4ksan
2025-01-09 14:03:01 +03:00
parent d797fec45f
commit c521d32bc8
3 changed files with 30 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
from typing import TypedDict, Any
class Guild(TypedDict):
tracks_list: list[dict[str, Any]]
next_tracks_list: list[dict[str, Any]]
previous_tracks_list: list[dict[str, Any]]
current_track: dict[str, Any] | None
is_stopped: bool
@@ -10,7 +10,7 @@ class Guild(TypedDict):
class ExplicitGuild(TypedDict):
_id: int
tracks_list: list[dict[str, Any]]
next_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