Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#getActiveThreads

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.getActiveThreads
Re-export
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.

Parameters

channelId: string
optional
params: { before?: string; limit?: number; } = [UNSUPPORTED]

Returns

Promise<{ threads: ThreadChannelPayload[]; members: ThreadMemberPayload[]; has_more: boolean; }>