$archiveThread
$archiveThread
will archive or unarchive a specific thread.
Usage
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: