AccountClient
A internal class in Alta.Api.Client, Alta.Api.Client.HighLevel. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Online client for linking an Alta account to Discord. Reached as ApiAccess.ApiClient.Account; calls Alta's web API, which no longer answers.
- Listed in Alta.Api.Client
- Inherits or implements
HighLevelApiClientBase,IAccountClient
Constructors
| Member | What it is |
|---|---|
AccountClient(HighLevelApiClient highLevelApiClient) | Creates an AccountClient from highLevelApiClient. |
Methods
| Member | What it is |
|---|---|
Task<LinkedAccountInfo> GetLinkedDiscordAccount() | Gets the Discord account linked to the logged-in user, or to the given user ID. |
Task<LinkedAccountInfo> GetLinkedDiscordAccount(int userIdentifier) | Gets the Discord account linked to the logged-in user, or to the given user ID. |
Task LinkDiscordAccount(string linkToken, ulong discordUserIdentifier) | Links the logged-in user to a Discord user ID using a link token. |
Task LinkDiscordAccountAdmin(int userIdentifier, ulong discordUserIdentifier) | Links a given Alta user to a Discord user ID without a token, an admin call. |
Task UnLinkDiscordAccount(int? userIdentifier) | Removes the Discord link for the given user, or the logged-in user when null. |