Skip to content

$addThreadMember

$addThreadMember will add a member to a thread.

Usage

$addThreadMember[channelID;threadID;userID;reason]

Parameters

FieldTypeDescriptionRequired
channelIDnumberChannel ID of where the thread is located.true
threadIDnumberThe thread ID.true
userIDnumberThe user that should be added to the thread.true
reasonstringThe reason that will be displayed in the guild’s audit logs.true

Example(s)

This will create a thread and add random user to it:

1
client.command({
2
name: "addThreadMember",
3
code: `
4
$addThreadMember[$channelID;$get[id];$randomUserID;testing]
5
$let[id;$createThread[$channelID;example;1440;public;$messageID;true]]
6
`
7
});