Start Thread From Channel

BlockThreads

Start a thread from a channel.

Inputs

Channel IDRequired

ID of the channel to start the thread in.

Thread NameRequired

Name of the thread.

Archive Duration

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 Channel

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_channel

Inputs

FieldInventScript nameValue
Channel IDchannel_id
Thread Namethread_name
Archive Durationarchive_duration"1 Hour", "24 Hours", "3 Days", "1 Week"
Thread Typethread_type"Public", "Private"

Outputs

FieldInventScript nameValue
Thread IDthread_id

Example InventScript

threadFromChannel := start_thread_from_channel(Args{channel_id: trigger.channel_id, thread_name: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Thread ID: " + threadFromChannel.thread_id,
})

More threads blocks