Create Forum Thread

BlockThreads

Create a thread in a forum channel.

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_thread

Inputs

FieldInventScript nameValue
Channel IDchannel_id
Thread Namethread_name
Thread Contentthread_content
Allow Mentionsallow_mentions"None", "Everyone/Here", "Roles", "Users"
Archive Durationarchive_duration"1 Hour", "24 Hours", "3 Days", "1 Week"

Outputs

FieldInventScript nameValue
Thread IDthread_id

Example InventScript

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,
})

More threads blocks