connectGateway static method
- String token,
- Flags<
GatewayIntents> intents, - {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);