Table of Contents

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

<pre><code class="lang-csharp">new DiscordAccessToken(string accessToken, string tokenType, int expiresIn, string refreshToken, string scope)</code></pre>

.
[JsonIgnore]
public DiscordAccessToken? AccessToken { get; set; }

Property Value

DiscordAccessToken