DiscordHttpClient class abstract

Implementers

Constructors

DiscordHttpClient()

Properties

discordToken DiscordToken?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteCall<T>(Iterable<String> pathSegments, {Map<String, dynamic> queryParameters = const {}}) Future<T?>
Generic method for authenticated DELETE calls.
getAccessToken(String code, String redirectUri) Future<DiscordToken>
getCall<T>(Iterable<String> pathSegments, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated GET calls.
initializeToken(DiscordToken discordToken) → void
Method to initialize the token the first time after connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchCall<T>(Iterable<String> pathSegments, dynamic data, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated PATCH calls.
postCall<T>(Iterable<String> pathSegments, dynamic data, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated POST calls.
putCall<T>(Iterable<String> pathSegments, dynamic data, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated PUT calls.
refreshAccessToken() Future<DiscordToken>
revokeRefreshToken() Future<void>
toString() String
A string representation of this object.
inherited
validateToken() Future<DiscordToken>

Operators

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