fetchGatewayBot method

Future<GatewayBot> fetchGatewayBot()

Fetch the current gateway configuration for the client.

Implementation

Future<GatewayBot> fetchGatewayBot() async {
  final route = HttpRoute()
    ..gateway()
    ..bot();
  final request = BasicRequest(route);

  final response = await client.httpHandler.executeSafe(request);
  return parseGatewayBot(response.jsonBody as Map<String, Object?>);
}