diff --git a/Pipfile b/Pipfile index c76e209..c0aebbe 100644 --- a/Pipfile +++ b/Pipfile @@ -13,6 +13,8 @@ pre-commit = "*" furo = "*" sphinx = "*" myst-parser = "*" +black = "*" +typing-extensions = "*" [requires] python_version = "3.8" diff --git a/pomice/player.py b/pomice/player.py index ecc180b..e1e84e8 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -132,7 +132,11 @@ class Player(VoiceProtocol): ) def __call__(self, client: Client, channel: VoiceChannel) -> Player: - return self.__class__(client, channel) + self.client = client + self.channel = channel + self._guild = channel.guild + + return self def __init__( self,