code: async def close(self):
          
          if self._closed:
              return
  
          await self.http.close()
          self._closed = True
  
          for voice in self.voice_clients:
              try:
                  await voice.disconnect()
              except Exception:
                  # if an error happens during disconnects, disregard it.
                  pass
  
          if self.ws is not None and self.ws.open:
              await self.ws.close()
  
          self._ready.clear()
docs: |coro|
  
          Closes the connection to discord.