Method GetStickerPackAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetStickerPackAsync(ulong, CancellationToken)
Gets a sticker pack.
public Task<DiscordStickerPack> GetStickerPackAsync(ulong id, CancellationToken cancellationToken = default)
Parameters
idulongThe sticker pack's id.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordStickerPack>
The sticker pack.
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.