# Modify Emoji

> Modifies a given emoji in a server.

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `emoji_id` | yes | ID of the emoji to modify. |  |
| `server_id` | yes | ID of the server where the emoji resides. |  |
| `new_name` |  | New name for the emoji. |  |
| `role_ids` |  | Comma-separated role IDs for the emoji. |  |
| `image` |  | New base64 encoded image for the emoji. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `id` | ID of the modified emoji. |  |
| `name` | Name of the modified emoji. |  |
| `roles` | Comma-separated role IDs that can use the emoji. |  |

**Example**

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