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
name
stringThe name of the sticker.
description
stringThe optional description of the sticker.
emoji
DiscordEmojiThe emoji to associate the sticker with.
file
StreamThe sticker.
format
StickerFormatThe file format the sticker is written in.
reason
stringAudit 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.