for forumThreadTag := range get_forum_thread_tags(Args{channel_id: trigger.channel_id}) {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Tag ID: " + forumThreadTag.tag_id,
})
}
Get Forum Channel Available Tags
LoopThreads
Get the tags of a forum channel.
- Loop block: the blocks placed inside it run once for each item, and can use the current item's outputs.
Inputs
Channel IDRequired
ID of the forum or media channel to get the tags of.
Loop Body
Blocks to run for each tag.
Holds blocks
Outputs
Iteration Number
Current iteration (1-based).
Example: 1
Total Iterations
Total number of iterations.
Example: 5
Tag ID
ID of the tag.
Tag Name
Name of the tag.
Moderated
Whether the tag is moderated.
Emoji ID
Emoji ID for the tag.
Emoji Name
Emoji name for the tag.
Build a bot using blocks like Get Forum Channel Available Tags
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:
get_forum_thread_tags- Loop block: write
for item := range get_forum_thread_tags(Args{...}) { ... }and read the current item's outputs fromitem. See loops.
Inputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_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" |
| Tag ID | tag_id | |
| Tag Name | tag_name | |
| Moderated | moderated | |
| Emoji ID | emoji_id | |
| Emoji Name | emoji_name |
Example InventScript
More threads blocks
Start Thread From MessageStart a thread from a message.Start Thread From ChannelStart a thread from a channel.Create Forum ThreadCreate a thread in a forum channel.Update Forum Thread TagsUpdate the tags of a forum thread.Join ThreadJoin a thread.Leave ThreadLeave a thread.Add Thread MemberAdd a member to a thread.Remove Thread MemberRemove a member from a thread.Archive ThreadArchive a thread.Unarchive ThreadUnarchive a thread.Lock ThreadLock a thread.Unlock ThreadUnlock a thread.Pin ThreadPin a thread.Unpin ThreadUnpin a thread.