async def close(self):
if self._closed:<EOL><INDENT>return<EOL><DEDENT>await self.http.close()<EOL>self._closed = True<EOL>for voice in self.voice_clients:<EOL><INDENT>try:<EOL><INDENT>await voice.disconnect()<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if self.ws is not None and self.ws.open:<EOL><INDENT>await self.ws.close()<EOL><DEDENT>self._ready.clear()<EOL>
|coro|

        Closes the connection to discord.