Skip to content

$removeThreadMember

$removeThreadMember will remove a given thread member from a given thread.

Usage

$removeThreadMember[channelID;threadID;userID;reason?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel of where the thread is located in.true
threadIDnumberThe thread ID.true
userIDnumberThe ID of the user that will be removed from the given thread.true
reason?stringReason that will be displayed in the guild’s audit logs.false

Example(s)

This will remove the command author from a given thread:

1
client.command({
2
name: "removeThreadMember",
3
code: `
4
$removeThreadMember[$channelID;threadID;$authorID;Testing functions!]
5
`
6
});