Skip to content

$fetchArchivedThreads

$fetchArchivedThreads will return all archived threads of a given channel.

Usage

$fetchArchivedThreads[channelID;option?]

Parameters

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

Example(s)

This will return all archived threads, if any:

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