threadFromMessage := start_thread_from_message(Args{
channel_id: trigger.channel_id,
message_id: trigger.message_id,
archive_duration: "1 Hour",
})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Thread ID: " + threadFromMessage.thread_id,
})
Inputs
Channel IDRequired
ID of the channel to start the thread in.
Message IDRequired
ID of the message to start the thread from.
Thread Name
Name of the thread.
Archive DurationRequired
Duration to archive the thread after.
Options1 Hour24 Hours3 Days1 Week
Thread Type
Type of thread to create.
OptionsPublicPrivate
Outputs
Thread ID
ID of the created thread.
Build a bot using blocks like Start Thread From Message
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:
start_thread_from_messageInputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | |
| Message ID | message_id | |
| Thread Name | thread_name | |
| Archive Duration | archive_duration | "1 Hour", "24 Hours", "3 Days", "1 Week" |
| Thread Type | thread_type | "Public", "Private" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Thread ID | thread_id |
Example InventScript
More threads blocks
Start Thread From ChannelStart a thread from a channel.Create Forum ThreadCreate a thread in a forum 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.