Class

ThreadMemberManager

List, add, and remove members of a ThreadChannel.

Constructor

new ThreadMemberManager(thread: ThreadChannel)

Methods

.add(userId)

userId: string → Promise<void>

Add a user to this thread. Private threads only, unless the caller can manage the parent.

await message.thread.members.add(userId);

.remove(userId)

userId: string → Promise<void>

Remove a user from this thread.

await message.thread.members.remove(userId);