Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#getPrivateArchivedThreads

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.getPrivateArchivedThreads
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Returns archived threads in the channel that are of type PRIVATE_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.

Parameters

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

Returns

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