mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
7 lines
278 B
TypeScript
7 lines
278 B
TypeScript
import type { Bot } from "../../../bot.ts";
|
|
|
|
/** Adds the bot to the thread. Cannot join an archived thread. */
|
|
export async function joinThread(bot: Bot, threadId: bigint) {
|
|
await bot.rest.runMethod<undefined>(bot.rest, "put", bot.constants.endpoints.THREAD_ME(threadId));
|
|
}
|