> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create emoji

> Create a custom emoji in a Discord server.

`discord.createEmoji` create a custom emoji in a Discord server.

```ts automations/discord-create-emoji.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { discord } from "automate.ax/discord"

export default automation("Create emoji", () => {
  onHttpRequest({ scope: "automation" })
  discord.createEmoji({
    guildId: "123456789012345678",
    name: "ship",
    imageDataUri: "data:image/png;base64,...",
  })
})
```

## Inputs

Required `guildId`, 2–32 character alphanumeric/underscore `name`, and image data URI. Optional `roleIds` and audit-log `reason`. Optional second argument `{ account }` selects the Discord binding.

## Output

Returns the created `DiscordEmoji`.

## Discord behavior

Requires `CREATE_GUILD_EXPRESSIONS`; size, format, animation, and server emoji limits apply.
