Method DeleteStickerAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteStickerAsync(ulong, string)
Deletes a sticker
public Task DeleteStickerAsync(ulong sticker, string reason = null)
Parameters
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.
DeleteStickerAsync(DiscordSticker, string)
Deletes a sticker
public Task DeleteStickerAsync(DiscordSticker sticker, string reason = null)
Parameters
sticker
DiscordStickerSticker to delete
reason
stringAudit log reason
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.