Table of Contents

Method DeleteStickerAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteStickerAsync(ulong, string)

Deletes a sticker

public Task DeleteStickerAsync(ulong sticker, string reason = null)

Parameters

sticker ulong

Id of sticker to delete

reason string

Audit log reason

Returns

Task

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 DiscordSticker

Sticker to delete

reason string

Audit log reason

Returns

Task

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.