Table of Contents

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 string

The name of the sticker.

description string

The optional description of the sticker.

emoji DiscordEmoji

The emoji to associate the sticker with.

file Stream

The sticker.

format StickerFormat

The file format the sticker is written in.

reason string

Audit log reason

Returns

Task<DiscordSticker>

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageGuildExpressions permission.

ServerErrorException

Thrown when Discord is unable to process the request.