$archiveThread
$archiveThread
will archive or unarchive a specific thread.
Usage
$archiveThread[threadID;channelID?;archive?;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
threadID | number | Thread ID. | true |
channelID? | number | Channel ID of where the thread is located. | false |
archive? | boolean | Archive the given thread? | false |
reason? | string | Reason that will be displayed in the guild’s audit logs. | false |
Example(s)
This will archive the created thread:
1client.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});