$createThread
$createThread
will create a new thread.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | The channel ID of where the thread should be created in. | true |
name | string | The name of the newly created thread. | true |
archive | string | After how much time the thread will be archived (ms). | true |
type | string | Thread type 1. public (default) 2. private | true |
startMessage | string | The message ID of where the thread should relate to. | true |
returnId? | string | If 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: