ApiOptions class abstract

Options for connecting to the Discord API.

Implementers

Constructors

ApiOptions({String userAgent = defaultUserAgent})
Create a new ApiOptions.

Properties

apiVersion int
The version of the API to use.
no setter
authorizationHeader String
The value of the Authorization header to use when authenticating requests.
no setter
baseUri String
The base URI relative to the host where the API can be found.
no setter
cdnHost String
The host at which the CDN can be found.
no setter
hashCode int
The hash code for this object.
no setterinherited
host String
The host at which the API can be found.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String
The value of the User-Agent header to send with each request.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultUserAgent → const String
The default value for the User-Agent header for bots made with nyxx.
nyxxRepositoryUrl → const String
The URL to the nyxx repository used in defaultUserAgent.
nyxxVersion → const String
The version of nyxx used in defaultUserAgent.