Skip to content

$lockThread

$lockThread will lock a specified thread.

Usage

$lockThread[channelID;threadID;reason?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel where the thread is a parent of.true
threadIDnumberThe ID of the thread which will be locked.true
reason?stringThe reason which will be displayed in the guild’s audit logs.false

Example(s)

This will lock a given thread:

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