mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
* feat: base plugin lib idea * fix: stuff * fmt * fix: imports and exports * fix: errors & tests * fix: remove logs
7 lines
282 B
TypeScript
7 lines
282 B
TypeScript
import { 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.routes.THREAD_ME(threadId));
|
|
}
|