changed MISSING to None

This commit is contained in:
Crussader 2021-10-20 21:51:40 +04:00 committed by GitHub
parent 9c241f76a7
commit fa434f8ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ from .exceptions import TrackInvalidPosition
from .filters import Filter from .filters import Filter
from .pool import Node, NodePool from .pool import Node, NodePool
from .objects import Track from .objects import Track
from .utils import ClientType, MISSING from .utils import ClientType
class Player(VoiceProtocol): class Player(VoiceProtocol):
"""The Default Basic Player class for Pomice. """The Default Basic Player class for Pomice.
@ -27,7 +27,7 @@ class Player(VoiceProtocol):
return self return self
def __init__(self, client : ClientType = MISSING, channel : VoiceChannel = MISSING, **kwargs): def __init__(self, client : ClientType = None, channel : VoiceChannel = None, **kwargs):
# self.client # self.client
self._bot = client self._bot = client
@ -44,7 +44,7 @@ class Player(VoiceProtocol):
self._last_update = 0 self._last_update = 0
self._voice_state = {} self._voice_state = {}
self._extra = kwargs or {} # all custom attributes you want to store self._extra = kwargs or {} # all custom attributes you want to store ? can change this later
self._current: Track = None self._current: Track = None
self._filter: Filter = None self._filter: Filter = None