OAuth2ApiOptions class

Options for connecting the the Discord API using credentials from an OAuth2 flow.

Inheritance
Implemented types

Constructors

OAuth2ApiOptions({required Credentials credentials, String userAgent = defaultUserAgent})
Create a new OAuth2ApiOptions.

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
credentials Credentials
The credentials to use when connecting to the API.
getter/setter pair
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.
no setteroverride
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