Skip to content

Commit

Permalink
fix(node): add player to client state
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Jun 2, 2023
1 parent 6ca127e commit 325750b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mafic/node.py
Expand Up @@ -1326,6 +1326,8 @@ async def _add_unknown_player(self, player_id: int, state: PlayerPayload) -> Non
player._node = self # pyright: ignore[reportPrivateUsage]

self._players[player_id] = player
key, _ = player.channel._get_voice_client_key() # pyright: ignore
self.client._connection._add_voice_client(key, player) # pyright: ignore

async def _remove_unknown_player(self, player_id: int) -> None:
"""Remove an unknown player from the node.
Expand Down

0 comments on commit 325750b

Please sign in to comment.