Discore
Show / Hide Table of Contents

Method CreateGuildEmoji

| Improve this Doc View Source

CreateGuildEmoji(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 options is null.

DiscordHttpApiException
| Improve this Doc View Source

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 guild or options is null.

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