Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class GuildThreadAvailableChannel
extends GuildChannel
import { GuildThreadAvailableChannel } from "https://deno.land/x/harmony@v2.8.0/src/structures/guildThreadAvailableChannel.ts";

Constructors

new
GuildThreadAvailableChannel()

Properties

optional
defaultAutoArchiveDuration: number
optional
defaultThreadSlowmode: number
slowmode: number
optional
topic: string

Methods

Edit the Guild Text Channel

fetchArchivedThreads(type?: "public" | "private", params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchJoinedPrivateArchivedThreads(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchPrivateArchivedThreads(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>
fetchPublicArchivedThreads(params?: { before?: string; limit?: number; }): Promise<{ threads: ThreadChannel[]; members: ThreadMember[]; hasMore: boolean; }>

Edit Default Auto Archive Duration of threads

setDefaultThreadSlowmode(slowmode?: number | null): Promise<GuildThreadAvailableChannel>

Edit Default Slowmode of the threads in the channel

setSlowmode(slowmode?: number | null): Promise<GuildThreadAvailableChannel>

Edit Slowmode of the channel

setTopic(topic: string): Promise<GuildThreadAvailableChannel>

Edit topic of the channel

startThread(options: CreateThreadOptions, message?: Message | string): Promise<ThreadChannel>