DiscordToken class
Constructors
- DiscordToken({required String accessToken, required String refreshToken, required String scope, required String tokenType, required int expiresIn, DiscordTokenWebhook? webhook})
-
DiscordToken.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accessToken → String
-
final
- expiresAt ↔ DateTime
-
latefinal
- expiresIn → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
no setter
- refreshToken → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String
-
final
-
scopes
↔ List<
String> ? -
latefinal
- tokenType → String
-
final
- webhook → DiscordTokenWebhook?
-
final
Methods
-
copyWith(
{String? accessToken, String? refreshToken, String? scope, String? tokenType, int? expiresIn, DiscordTokenWebhook? webhook}) → DiscordToken -
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
- accessTokenEntry → const String
- expiresInEntry → const String
- refreshTokenEntry → const String
- scopeEntry → const String
- tokenTypeEntry → const String
- webhookEntry → const String