Nostrum.Api.modify_guild_emoji

You're seeing just the function modify_guild_emoji, go back to Nostrum.Api module for more information.
Link to this function

modify_guild_emoji(guild_id, emoji_id, options \\ %{}, reason \\ nil)

View Source

Specs

Modify the given emoji.

This endpoint requires the MANAGE_EMOJIS permission. It fires a Nostrum.Consumer.guild_emojis_update/0 event.

An optional reason can be provided for the audit log.

If successful, returns {:ok, emoji}. Otherwise, returns Nostrum.Api.error/0.

Options

  • :name (string) - name of the emoji
  • :roles (list of Nostrum.Snowflake.t/0) - roles to which this emoji will be whitelisted

Examples

Nostrum.Api.modify_guild_emoji(43189401384091, 4314301984301, name: "elixir", roles: [])