From 3dff29d0b8128bf2838ea4383fa66d3571255065 Mon Sep 17 00:00:00 2001 From: Damego Date: Sat, 3 Sep 2022 21:36:43 +0500 Subject: [PATCH] fix: revert code to i.py 4.3.1 --- interactions/ext/lavalink/client.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interactions/ext/lavalink/client.py b/interactions/ext/lavalink/client.py index 0f7ce0d..9a6d4b5 100644 --- a/interactions/ext/lavalink/client.py +++ b/interactions/ext/lavalink/client.py @@ -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" @@ -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}