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
ulongThe ID of the guild.
name
stringName of the emoji.
image
StreamImage to use as the emoji.
roles
IEnumerable<ulong>Roles for which the emoji will be available.
reason
stringReason for audit logs.