Method DeleteGuildEmoji
| Improve this Doc View SourceDeleteGuildEmoji(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 |
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 |
| DiscordHttpApiException |