$addThreadMember
$addThreadMember
will add a member to a thread.
Usage
$addThreadMember[channelID;threadID;userID;reason]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | Channel ID of where the thread is located. | true |
threadID | number | The thread ID. | true |
userID | number | The user that should be added to the thread. | true |
reason | string | The 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:
1client.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});