Table of Contents

Method ModifyGuildEmojiAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

ModifyGuildEmojiAsync(ulong, ulong, string, IEnumerable<ulong>, string)

Modifies a guild's emoji.

public Task<DiscordGuildEmoji> ModifyGuildEmojiAsync(ulong guildId, ulong emojiId, string name, IEnumerable<ulong> roles = null, string reason = null)

Parameters

guildId ulong

The ID of the guild.

emojiId ulong

The ID of the emoji.

name string

New name of the emoji.

roles IEnumerable<ulong>

Roles for which the emoji will be available.

reason string

Reason for audit logs.

Returns

Task<DiscordGuildEmoji>