Skip to content

$leaveThread

$leaveThread will make the bot leave a specific thread.

Usage

$leaveThread[channelID;threadID]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel of where the thread is located in.true
threadIDnumberThe ID of the thread.true

Example(s)

This will create a thread and make the bot leave after creation:

1
client.command({
2
name: "leaveThread",
3
code: `
4
$leaveThread[$channelID;$get[threadID]]
5
$let[threadID;$createThread[$channelID;Example!;1440;public;$messageID;true]]
6
`
7
});