Skip to content

$deleteThread

$deleteThread will delete a given thread of a channel.

Usage

$deleteThread[channelID;threadID;reason?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel where the thread exists in.true
threadIDnumberThe thread ID.true
reason?stringThe 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 ):

1
client.command({
2
name: "deleteThread",
3
code: `
4
$deleteThread[$channelID;threadID;Crazy Example.]
5
`
6
});