$deleteThread
$deleteThread
will delete a given thread of a channel.
Usage
$deleteThread[channelID;threadID;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | The ID of the channel where the thread exists in. | true |
threadID | number | The thread ID. | true |
reason? | string | The reason which will be displayed in the guild’s audit logs. | false |
Example(s)
This will delete a thread of the channel where you execute the command in ( make sure to replace threadID with an actual thread ID ):
1client.command({2 name: "deleteThread",3 code: `4 $deleteThread[$channelID;threadID;Crazy Example.]5 `6});