Method CreateGuildEmoji
| Improve this Doc View SourceCreateGuildEmoji(Snowflake, CreateGuildEmojiOptions)
Creates and returns a new guild emoji.
Requires ManageEmojis.
Declaration
public Task<DiscordEmoji> CreateGuildEmoji(Snowflake guildId, CreateGuildEmojiOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | guildId | The ID of the guild to give the new emoji to. |
| CreateGuildEmojiOptions | options | Options describing the properties of the new emoji. |
Returns
| Type | Description |
|---|---|
| Task<DiscordEmoji> | Returns the newly created emoji. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |
CreateGuildEmoji(DiscordGuild, CreateGuildEmojiOptions)
Creates and returns a new guild emoji.
Requires ManageEmojis.
Declaration
public Task<DiscordEmoji> CreateGuildEmoji(DiscordGuild guild, CreateGuildEmojiOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordGuild | guild | The guild to give the new emoji to. |
| CreateGuildEmojiOptions | options | Options describing the properties of the new emoji. |
Returns
| Type | Description |
|---|---|
| Task<DiscordEmoji> | Returns the newly created emoji. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |