Table of Contents

Method GetRpcApplicationAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetRpcApplicationAsync(ulong, CancellationToken)

Gets a applications rpc information.

public Task<DiscordRpcApplication> GetRpcApplicationAsync(ulong applicationId, CancellationToken cancellationToken = default)

Parameters

applicationId ulong

Id of the application

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordRpcApplication>

The requested application.

Exceptions

NotFoundException

Thrown when the application does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.