Skip to content

$fetchActiveThreads

$fetchActiveThreads will return all active threads of a given channel.

Usage

$fetchActiveThreads[channelID;option?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberChannel ID of the channel of which you want to fetch the active threads of.true
option?stringHow to return the active threads.
1. name (default)
2. id
false

Example(s)

This will return all active threads, if any:

1
client.command({
2
name: "fetchActiveThreads",
3
code: `
4
$fetchActiveThreads[$channelID;name]
5
`
6
});