Skip to content

Commit

Permalink
fix: revert code to i.py 4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Damego committed Sep 3, 2022
1 parent 5a6afb3 commit 3dff29d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions interactions/ext/lavalink/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, token: str, **kwargs):
super().__init__(token, **kwargs)

self._websocket = VoiceWebSocketClient(token, self._intents)
self.lavalink_client: LavalinkClient = None
self.lavalink_client = LavalinkClient(int(self.me.id))

self._websocket._dispatch.register(
self.__raw_voice_state_update, "on_raw_voice_state_update"
Expand All @@ -25,12 +25,8 @@ def __init__(self, token: str, **kwargs):
self.__raw_voice_server_update, "on_raw_voice_server_update"
)

self._websocket._dispatch.register(self.__on_client_start, "on_start")

async def __on_client_start(self):
self._websocket._bot_var = self
self._http._bot_var = self
self.lavalink_client = LavalinkClient(int(self.me.id))

async def __raw_voice_state_update(self, data: dict):
lavalink_data = {"t": "VOICE_STATE_UPDATE", "d": data}
Expand Down

0 comments on commit 3dff29d

Please sign in to comment.