mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
7 lines
290 B
TypeScript
7 lines
290 B
TypeScript
import type { Bot } from "../../../bot.ts";
|
|
|
|
/** Removes the bot from a thread. Requires the thread is not archived. */
|
|
export async function leaveThread(bot: Bot, threadId: bigint) {
|
|
await bot.rest.runMethod<undefined>(bot.rest, "delete", bot.constants.endpoints.THREAD_ME(threadId));
|
|
}
|