async def _attempt_reconnect(self):
        """
        Attempts to reconnect to the Lavalink server.
        Returns
        -------
        bool
            ``True`` if the reconnection attempt was successful.
        """
        log.info('Connection closed; attempting to reconnect in 30 seconds')
        for a in range(0, self._ws_retry):
            await asyncio.sleep(30)
            log.info('Reconnecting... (Attempt {})'.format(a + 1))
            await self.connect()

            if self._ws.open:
                return True
        return False
async def _attempt_reconnect(self):
        """
        Attempts to reconnect to the Lavalink server.
        Returns
        -------
        bool
            ``True`` if the reconnection attempt was successful.
        """
        log.info('Connection closed; attempting to reconnect in 30 seconds')
        for a in range(0, self._ws_retry):
            await asyncio.sleep(30)
            log.info('Reconnecting... (Attempt {})'.format(a + 1))
            await self.connect()

            if self._ws.open:
                return True
        return False
async def _attempt_reconnect ( self ) : log . info ( 'Connection closed; attempting to reconnect in 30 seconds' ) for a in range ( 0 , self . _ws_retry ) : await asyncio . sleep ( 30 ) log . info ( 'Reconnecting... (Attempt {})' . format ( a + 1 ) ) await self . connect ( ) if self . _ws . open : return True return False
Attempts to reconnect to the Lavalink server.
        Returns
        -------
        bool
            ``True`` if the reconnection attempt was successful.
Attempts to reconnect to the Lavalink server . Returns ------- bool True if the reconnection attempt was successful .