Files
discordeno/helpers/channels/threads/joinThread.ts
2022-02-11 09:49:53 +00:00

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));
}