import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";
Returns all active threads in the channel, including public and private threads. Threads are ordered by their id, in descending order. Requires the READ_MESSAGE_HISTORY permission.
Returns
Promise<{ threads: ThreadChannelPayload[]; members: ThreadMemberPayload[]; has_more: boolean; }>