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})
}
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 fromitem. See loops.
Inputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id | |
| Loop Body | body | blocks: func() { ... } |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Iteration Number | iteration_number | e.g. "1" |
| Total Iterations | total_iterations | e.g. "5" |
| Emoji ID | id | |
| Emoji Name | name | |
| Animated | animated | |
| Available | available | |
| Managed | managed | |
| Requires Colons | requires_colons | |
| Roles | roles | |
| User ID | user_id | |
| API Name | api_name |