mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Update get_active_threads.ts
This commit is contained in:
@@ -6,6 +6,6 @@ import { requireBotChannelPermissions } from "../../../util/permissions.ts";
|
|||||||
export async function getActiveThreads(channelId: bigint) {
|
export async function getActiveThreads(channelId: bigint) {
|
||||||
await requireBotChannelPermissions(channelId, ["READ_MESSAGE_HISTORY"]);
|
await requireBotChannelPermissions(channelId, ["READ_MESSAGE_HISTORY"]);
|
||||||
|
|
||||||
// TODO: v12 map the result to a nice collection
|
// TODO: v12 map the result to a nice collection, check what it returns
|
||||||
return await rest.runMethod("get", endpoints.THREAD_ACTIVE(channelId));
|
return await rest.runMethod("get", endpoints.THREAD_ACTIVE(channelId));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user