This commit is contained in:
Skillz4Killz
2021-06-17 16:52:31 +00:00
committed by GitHub
parent db94a659b7
commit 3a060aaa28

View File

@@ -6,6 +6,9 @@ import { requireBotChannelPermissions } from "../../../util/permissions.ts";
export async function getActiveThreads(channelId: bigint) {
await requireBotChannelPermissions(channelId, ["READ_MESSAGE_HISTORY"]);
// TODO: pagination?? seriously doubt discord will send thousands of threads at once
// TODO: max limits?
// TODO: v12 map the result to a nice collection, check what it returns
return await rest.runMethod("get", endpoints.THREAD_ACTIVE(channelId));
}