Method GetCurrentApplicationInfoAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetCurrentApplicationInfoAsync(CancellationToken)
Gets the current applications information.
public Task<DiscordApplication> GetCurrentApplicationInfoAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordApplication>
The requested application.
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.