mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
comments
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user