remove player._guild

This commit is contained in:
VP 2021-12-22 15:42:19 +02:00
parent 42dde4ce44
commit 84ebca1c12
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ class Player(VoiceProtocol):
self.client = client self.client = client
self._bot = client self._bot = client
self.channel = channel self.channel = channel
self._guild: Guild = self.channel.guild
self._node = node if node else NodePool.get_node() self._node = node if node else NodePool.get_node()
self._current: Track = None self._current: Track = None
@ -115,7 +114,7 @@ class Player(VoiceProtocol):
@property @property
def guild(self) -> Guild: def guild(self) -> Guild:
"""Property which returns the guild associated with the player""" """Property which returns the guild associated with the player"""
return self._guild return self.channel.guild
@property @property
def volume(self) -> int: def volume(self) -> int: