$lockThread
$lockThread will lock a specified thread.
Usage
$lockThread[channelID;threadID;reason?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channelID | number | The ID of the channel where the thread is a parent of. | true |
| threadID | number | The ID of the thread which will be locked. | true |
| reason? | string | The reason which will be displayed in the guild’s audit logs. | false |
Example(s)
This will lock a given thread:
1client.command({2 name: "lockThread",3 code: `4 $lockThread[$channelID;threadID;Example reason!]5 `6});