# Create Emoji

> Creates a new emoji in a server.

- ID: `create_emoji`
- Type: Block
- Category: [Emojis](https://inventor.bot/docs/reference/blocks/emojis.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | ID of the server the emoji should be created in. |  |
| `name` | yes | Name for the new emoji. |  |
| `image` | yes | Base64 encoded image for the new emoji. |  |
| `roles` |  | Comma-separated role IDs that can use the emoji. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `id` | ID of the created emoji. |  |
| `name` | Name of the created emoji. |  |
| `roles` | Comma-separated role IDs that can use the emoji. |  |
| `api_name` | API-ready emoji name (name:id or a:name:id). |  |

**Example**

```go
emoji := create_emoji(Args{
	server_id: trigger.server_id,
	name:      "...",
	image:     "...",
})
send_text_message(Args{channel_id: trigger.channel_id, message_content: "Emoji ID: " + emoji.id})
```