Property AccessToken
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AccessToken
Gets the user's access token.
Can be used in combination with DiscordOAuth2Client.
You can generate a token object from json with FromJson(string), if needed.
As alternative you can construct the object via
new DiscordAccessToken(string accessToken, string tokenType, int expiresIn, string refreshToken, string scope)
.
[JsonIgnore]
public DiscordAccessToken? AccessToken { get; set; }