mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
12 lines
466 B
TypeScript
12 lines
466 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) {
|
|
// const thread = await bot.cache.threads.get(threadId);
|
|
// if (thread?.archived) {
|
|
// throw new Error(bot.constants.Errors.CANNOT_ADD_USER_TO_ARCHIVED_THREADS);
|
|
// }
|
|
|
|
// return await bot.rest.runMethod<undefined>(bot.rest, "put", bot.constants.endpoints.THREAD_ME(threadId));
|
|
}
|