RestApiOptions class

Options for connecting to the Discord API to make HTTP requests with a bot token.

Inheritance
Implementers

Constructors

RestApiOptions({required String token, String userAgent = defaultUserAgent})
Create a new RestApiOptions.

Properties

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

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