connectRest static method
- String token, {
- 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);