Set optional args to None by default
This commit is contained in:
parent
cd2cfa7a5d
commit
14c4a68af8
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Pomice
|
Pomice
|
||||||
~~~~~~
|
~~~~~~
|
||||||
Modern Lavalink wrapper designed for discord.py
|
The modern Lavalink wrapper designed for discord.py.
|
||||||
|
|
||||||
:copyright: 2021, cloudwithax
|
:copyright: 2021, cloudwithax
|
||||||
:license: GPL-3.0
|
:license: GPL-3.0
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,10 @@ class Node:
|
||||||
identifier: str,
|
identifier: str,
|
||||||
secure: bool = False,
|
secure: bool = False,
|
||||||
heartbeat: int = 30,
|
heartbeat: int = 30,
|
||||||
region: Optional[VoiceRegion],
|
region: Optional[VoiceRegion] = None,
|
||||||
session: Optional[aiohttp.ClientSession],
|
session: Optional[aiohttp.ClientSession] = None,
|
||||||
spotify_client_id: Optional[str],
|
spotify_client_id: Optional[str] = None,
|
||||||
spotify_client_secret: Optional[str],
|
spotify_client_secret: Optional[str] = None,
|
||||||
|
|
||||||
):
|
):
|
||||||
self._bot = bot
|
self._bot = bot
|
||||||
|
|
@ -518,8 +518,8 @@ class NodePool:
|
||||||
secure: bool = False,
|
secure: bool = False,
|
||||||
heartbeat: int = 30,
|
heartbeat: int = 30,
|
||||||
region: Optional[VoiceRegion] = None,
|
region: Optional[VoiceRegion] = None,
|
||||||
spotify_client_id: Optional[str],
|
spotify_client_id: Optional[str] = None,
|
||||||
spotify_client_secret: Optional[str],
|
spotify_client_secret: Optional[str] = None,
|
||||||
session: Optional[aiohttp.ClientSession] = None,
|
session: Optional[aiohttp.ClientSession] = None,
|
||||||
|
|
||||||
) -> Node:
|
) -> Node:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue