Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/managers/channelThreads.ts>ChannelThreadsManager

An easy to use Discord API Library for Deno.
Go to Latest
class ChannelThreadsManager
import { ChannelThreadsManager } from "https://deno.land/x/harmony@v2.6.0/src/managers/channelThreads.ts";

Constructors

new
ChannelThreadsManager(
client: Client,
)

Methods

array(): Promise<ThreadChannel[]>
delete(id: string | ThreadChannel): Promise<boolean>

Delete a Thread Channel

fetchArchived(type?: "public" | "private", params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchJoinedPrivateArchived(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchPrivateArchived(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchPublicArchived(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
flush(): Promise<boolean>
get(id: string): Promise<ThreadChannel | undefined>
start(options: CreateThreadOptions, message: string | Message): Promise<ThreadChannel>