importtype{Bot}from"../../../bot.ts"; /** Removes the bot from a thread. Requires the thread is not archived. */exportasyncfunctionleaveThread(bot:Bot, threadId: bigint){await bot.rest.runMethod<undefined>(bot.rest,"DELETE", bot.constants.routes.THREAD_ME(threadId));}