connectGateway static method

Future<NyxxGateway> connectGateway(
  1. String token,
  2. Flags<GatewayIntents> intents,
  3. {GatewayClientOptions options = const GatewayClientOptions()}
)

Create an instance of NyxxGateway that can perform requests to the HTTP API, connects to the gateway and is authenticated with a bot token.

Implementation

static Future<NyxxGateway> connectGateway(String token, Flags<GatewayIntents> intents, {GatewayClientOptions options = const GatewayClientOptions()}) =>
    connectGatewayWithOptions(GatewayApiOptions(token: token, intents: intents), options);