forumThread := create_forum_thread(Args{
channel_id: trigger.channel_id,
thread_name: "...",
thread_content: "...",
})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Thread ID: " + forumThread.thread_id,
})
Inputs
Channel IDRequired
ID of the channel to create the thread in.
Thread NameRequired
Name of the thread.
Thread ContentRequired
Content of the thread.
Allow Mentions
Choose which mention types should notify users. Empty only pings users; None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging.
OptionsNoneEveryone/HereRolesUsers
Archive Duration
Duration to archive the thread after.
Options1 Hour24 Hours3 Days1 Week
Outputs
Thread ID
ID of the created thread.
Build a bot using blocks like Create Forum Thread
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_forum_threadInputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | |
| Thread Name | thread_name | |
| Thread Content | thread_content | |
| Allow Mentions | allow_mentions | "None", "Everyone/Here", "Roles", "Users" |
| Archive Duration | archive_duration | "1 Hour", "24 Hours", "3 Days", "1 Week" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Thread ID | thread_id |
Example InventScript
More threads blocks
Start Thread From MessageStart a thread from a message.Start Thread From ChannelStart a thread from a channel.Get Forum Channel Available TagsGet the tags of 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.