Method CreateStickerAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
CreateStickerAsync(string, string, DiscordEmoji, Stream, StickerFormat, string?)
Creates a sticker
public Task<DiscordSticker> CreateStickerAsync(string name, string description, DiscordEmoji emoji, Stream file, StickerFormat format, string? reason = null)
Parameters
namestringThe name of the sticker.
descriptionstringThe optional description of the sticker.
emojiDiscordEmojiThe emoji to associate the sticker with.
fileStreamThe sticker.
formatStickerFormatThe file format the sticker is written in.
reasonstringAudit log reason
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.