Table of Contents

Class AuthorizationInformation

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class AuthorizationInformation : IJsonModel<JsonAuthorizationInformation>
Inheritance
AuthorizationInformation
Implements
Inherited Members

Constructors

AuthorizationInformation(JsonAuthorizationInformation, RestClient)

public AuthorizationInformation(JsonAuthorizationInformation jsonModel, RestClient client)

Parameters

jsonModel JsonAuthorizationInformation
client RestClient

Properties

Application

The current application.

public Application Application { get; }

Property Value

Application

ExpiresAt

When the access token expires.

public DateTimeOffset ExpiresAt { get; }

Property Value

DateTimeOffset

Scopes

The scopes the user has authorized the application for.

public IReadOnlyList<string> Scopes { get; }

Property Value

IReadOnlyList<string>

User

The user who has authorized, if the user has authorized with the 'identify' scope.

public User? User { get; }

Property Value

User