Skip to main content

IAccountClient

An interface in Alta.Api.Client, Alta.Api.Client.HighLevel.

Alta web API calls for linking a Discord account to an Alta account. ApiAccess.ApiClient.Account. The API is gone, so calls fail.

Methods​

MemberWhat it is
Task<LinkedAccountInfo> GetLinkedDiscordAccount()Gets the Discord account linked to the logged-in user, or to a given user.
Task<LinkedAccountInfo> GetLinkedDiscordAccount(int userIdentifier)Gets the Discord account linked to the logged-in user, or to a given user.
Task LinkDiscordAccount(string linkToken, ulong discordUserIdentifier)Links a Discord user to the logged-in account using a link token.
Task LinkDiscordAccountAdmin(int userIdentifier, ulong discordUserIdentifier)Links a Discord user to a given Alta user, without a link token. Probably needs admin rights.
Task UnLinkDiscordAccount(int? userIdentifier)Unlinks the Discord account from a given user, or from the logged-in user when null.

Used in​

Members of other types that take, return or hold a IAccountClient: