discord.updateEmoji update a custom Discord emoji’s name or allowed roles.
automations/discord-update-emoji.automation.ts
Inputs
Required server and emoji IDs. Optional validname, roleIds, and audit-log reason; null role IDs clears restrictions. Optional second argument { account } selects the Discord binding.
Output
Returns the updatedDiscordEmoji.
Discord behavior
RequiresMANAGE_GUILD_EXPRESSIONS; managed emojis cannot be edited.