Table of Contents

Method CreateEmojiAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CreateEmojiAsync(ulong, string, Stream, IEnumerable<ulong>, string)

Creates an emoji in a guild.

public Task<DiscordGuildEmoji> CreateEmojiAsync(ulong guildId, string name, Stream image, IEnumerable<ulong> roles = null, string reason = null)

Parameters

guildId ulong

The ID of the guild.

name string

Name of the emoji.

image Stream

Image to use as the emoji.

roles IEnumerable<ulong>

Roles for which the emoji will be available.

reason string

Reason for audit logs.

Returns

Task<DiscordGuildEmoji>