Create Emoji

BlockEmojis

Creates a new emoji in a server.

Inputs

Server IDRequired

ID of the server the emoji should be created in.

Emoji NameRequired

Name for the new emoji.

ImageRequired

Base64 encoded image for the new emoji.

Roles

Comma-separated role IDs that can use the emoji.

Outputs

Emoji ID

ID of the created emoji.

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).

Build a bot using blocks like Create Emoji

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: create_emoji

Inputs

FieldInventScript nameValue
Server IDserver_id
Emoji Namename
Imageimage
Rolesroles

Outputs

FieldInventScript nameValue
Emoji IDid
Emoji Namename
Rolesroles
API Nameapi_name

Example InventScript

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})

More emojis blocks