From 3a060aaa288ea881edd231b33fa222eb6e7f0874 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Thu, 17 Jun 2021 16:52:31 +0000 Subject: [PATCH] comments --- src/helpers/channels/threads/get_active_threads.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/channels/threads/get_active_threads.ts b/src/helpers/channels/threads/get_active_threads.ts index 3fdab5f69..45ab33513 100644 --- a/src/helpers/channels/threads/get_active_threads.ts +++ b/src/helpers/channels/threads/get_active_threads.ts @@ -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)); }