connectRest static method

Future<NyxxRest> connectRest(
  1. String token,
  2. {RestClientOptions options = const RestClientOptions()}
)

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

Implementation

static Future<NyxxRest> connectRest(String token, {RestClientOptions options = const RestClientOptions()}) =>
    connectRestWithOptions(RestApiOptions(token: token), options);