fix: rename enum members to be uppercase
This commit is contained in:
parent
26888901ec
commit
252ee0b79e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue