Skip to content

$archiveThread

$archiveThread will archive or unarchive a specific thread.

Usage

$archiveThread[threadID;channelID?;archive?;reason?]

Parameters

FieldTypeDescriptionRequired
threadIDnumberThread ID.true
channelID?numberChannel ID of where the thread is located.false
archive?booleanArchive the given thread?false
reason?stringReason that will be displayed in the guild’s audit logs.false

Example(s)

This will archive the created thread:

1
client.command({
2
name: "archiveThread",
3
code: `
4
$archiveThread[$channelID;$get[id];true;testing]
5
$let[id;$createThread[$channelID;example;1440;public;$messageID;true]]
6
`
7
});