DiscordDioProvider class

Inheritance

Constructors

DiscordDioProvider({required String clientId, required String clientSecret})

Properties

clientId String
final
clientSecret String
final
dio → Dio
final
discordToken DiscordToken?
no setteroverride
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.
override
getAccessToken(String code, String redirectUri) Future<DiscordToken>
override
getCall<T>(Iterable<String> pathSegments, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated GET calls.
override
initializeToken(DiscordToken discordToken) → void
Method to initialize the token the first time after connection.
override
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.
override
postCall<T>(Iterable<String> pathSegments, dynamic data, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated POST calls.
override
putCall<T>(Iterable<String> pathSegments, dynamic data, {Map<String, dynamic> queryParameters = const {}}) Future<T>
Generic method for authenticated PUT calls.
override
refreshAccessToken() Future<DiscordToken>
override
revokeRefreshToken() Future<void>
override
toString() String
A string representation of this object.
inherited
validateToken() Future<DiscordToken>
override

Operators

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