mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
7 lines
360 B
TypeScript
7 lines
360 B
TypeScript
import type { Bot } from "../../../bot.ts";
|
|
|
|
/** Adds a user to a thread. Requires the ability to send messages in the thread. Requires the thread is not archived. */
|
|
export async function addToThread(bot: Bot, threadId: bigint, userId: bigint) {
|
|
await bot.rest.runMethod<undefined>(bot.rest, "put", bot.constants.endpoints.THREAD_USER(threadId, userId));
|
|
}
|