fix: rename enum members to be uppercase

This commit is contained in:
NiceAesth 2024-02-23 13:59:43 +02:00
parent 26888901ec
commit 252ee0b79e
4 changed files with 6 additions and 6 deletions

View File

@ -38,9 +38,9 @@ class SearchType(BaseStrEnum):
which is an alternative to YouTube or YouTube Music.
"""
ytsearch = "ytsearch"
ytmsearch = "ytmsearch"
scsearch = "scsearch"
YTSEARCH = "ytsearch"
YTMSEARCH = "ytmsearch"
SCSEARCH = "scsearch"
@unique

View File

@ -55,7 +55,7 @@ class Track:
info: dict,
ctx: Optional[commands.Context] = None,
track_type: TrackType,
search_type: SearchType = SearchType.ytsearch,
search_type: SearchType = SearchType.YTSEARCH,
filters: Optional[List[Filter]] = None,
timestamp: Optional[float] = None,
requester: Optional[Union[Member, User, ClientUser]] = None,

View File

@ -396,7 +396,7 @@ class Player(VoiceProtocol):
query: str,
*,
ctx: Optional[commands.Context] = None,
search_type: SearchType = SearchType.ytsearch,
search_type: SearchType = SearchType.YTSEARCH,
filters: Optional[List[Filter]] = None,
) -> Optional[Union[List[Track], Playlist]]:
"""Fetches tracks from the node's REST api to parse into Lavalink.

View File

@ -554,7 +554,7 @@ class Node:
query: str,
*,
ctx: Optional[commands.Context] = None,
search_type: SearchType = SearchType.ytsearch,
search_type: SearchType = SearchType.YTSEARCH,
filters: Optional[List[Filter]] = None,
) -> Optional[Union[Playlist, List[Track]]]:
"""Fetches tracks from the node's REST api to parse into Lavalink.