Skip to content

$createThread

$createThread will create a new thread.

Usage

$createThread[channelID;name;archive;type;startMessage;returnId?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe channel ID of where the thread should be created in.true
namestringThe name of the newly created thread.true
archivestringAfter how much time the thread will be archived (ms).true
typestringThread type
1. public (default)
2. private
true
startMessagestringThe message ID of where the thread should relate to.true
returnId?stringIf the function should return the thread ID after its creation.false
  • 60 — This option makes the thread stays active for 1 hour.
  • 1440 — This option makes the thread stays active for 1 day.
  • 4320 — This option makes the thread stays active for 3 days.
  • 10080 — This option makes the thread stays active for 1 week.
  • MAX — This option makes the thread stays active for the highest possible time.

Example(s)

This will create a thread in the current channel:

1
client.command({
2
name: "createThread",
3
code: `
4
$createThread[$channelID;Example!;60;public;$messageID;false]
5
`
6
});