Method GetStickerAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetStickerAsync(ulong, CancellationToken)
Gets a sticker
public Task<DiscordSticker> GetStickerAsync(ulong stickerId, CancellationToken cancellationToken = default)
Parameters
stickerIdulongThe ID of the sticker.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- UnauthorizedException
Thrown when the sticker could not be found.
- UnauthorizedException
Thrown when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.
- ArgumentException
Sticker does not belong to a guild.