Discore
Show / Hide Table of Contents

Method DeleteGuildEmoji

| Improve this Doc View Source

DeleteGuildEmoji(Snowflake, Snowflake)

Deletes a guild's emoji.

Requires ManageEmojis.

Declaration
public Task DeleteGuildEmoji(Snowflake guildId, Snowflake emojiId)
Parameters
Type Name Description
Snowflake guildId

The ID of the guild the emoji is in.

Snowflake emojiId

The ID of the emoji in the guild to delete.

Returns
Type Description
Task
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

DeleteGuildEmoji(DiscordGuild, DiscordEmoji)

Deletes a guild's emoji.

Requires ManageEmojis.

Declaration
public Task DeleteGuildEmoji(DiscordGuild guild, DiscordEmoji emoji)
Parameters
Type Name Description
DiscordGuild guild

The guild the emoji is in.

DiscordEmoji emoji

The emoji to delete.

Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException

Thrown if guild or emoji is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX