code: public static void setGateway(String gateway) {
          gatewayWriteLock.lock();
          try {
              DiscordWebSocketAdapter.gateway = gateway;
          } finally {
              gatewayWriteLock.unlock();
          }
      }
docs: Sets the gateway used to connect.
  
  @param gateway The gateway to set.