code: public function getGateway()
      {
          $gateway = $this->gateway;
  
          try {
              $response = $this->guzzle->get('https://discordapp.com/api/gateway', [
                  'headers' => [
                      'Authorization' => 'Bot '.$this->token,
                  ],
              ]);
  
              $gateway = Arr::get(json_decode($response->getBody(), true), 'url', $gateway);
          } catch (Exception $e) {
              $this->warn("Could not get a websocket gateway address, defaulting to '{$gateway}'.");
          }
  
          return $gateway;
      }
docs: Get the URL of the gateway that the socket should connect to.
  
  @return string