Get Emojis

LoopEmojis

Get all emojis from a server.

  • Loop block: the blocks placed inside it run once for each item, and can use the current item's outputs.

Inputs

Server IDRequired

ID of the server to retrieve emojis from.

Loop Body

Blocks to run for each emoji.

Holds blocks

Outputs

Iteration Number

Current iteration (1-based).

Example: 1

Total Iterations

Total number of emojis.

Example: 5

Emoji ID

ID of the emoji.

Emoji Name

Name of the emoji.

Animated

Whether the emoji is animated.

Available

Whether the emoji is available for use.

Managed

Whether the emoji is managed by an integration.

Requires Colons

Whether the emoji requires colons.

Roles

Comma-separated role IDs that can use the emoji.

User ID

ID of the emoji creator, if available.

API Name

API-ready emoji name (name:id or a:name:id).

Build a bot using blocks like Get Emojis

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: list_emojis
  • Loop block: write for item := range list_emojis(Args{...}) { ... } and read the current item's outputs from item. See loops.

Inputs

FieldInventScript nameValue
Server IDserver_id
Loop Bodybodyblocks: func() { ... }

Outputs

FieldInventScript nameValue
Iteration Numberiteration_numbere.g. "1"
Total Iterationstotal_iterationse.g. "5"
Emoji IDid
Emoji Namename
Animatedanimated
Availableavailable
Managedmanaged
Requires Colonsrequires_colons
Rolesroles
User IDuser_id
API Nameapi_name

Example InventScript

for emoji := range list_emojis(Args{server_id: trigger.server_id}) {
	send_text_message(Args{channel_id: trigger.channel_id, message_content: "Emoji ID: " + emoji.id})
}

More emojis blocks