async def close(self):
if self.is_closed():<EOL><INDENT>return<EOL><DEDENT>self._closed = True<EOL>for vc in self.voice_clients:<EOL><INDENT>try:<EOL><INDENT>await vc.disconnect()<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>to_close = [shard.ws.close() for shard in self.shards.values()]<EOL>if to_close:<EOL><INDENT>await asyncio.wait(to_close, loop=self.loop)<EOL><DEDENT>await self.http.close()<EOL>
|coro|

        Closes the connection to discord.