Table of Contents

Method GetRpcInfoAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetRpcInfoAsync(CancellationToken)

Gets additional information about an application if the user is an bot.

public Task<DiscordRpcApplication?> GetRpcInfoAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordRpcApplication>

The rpc info or null

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.