Skip to main content
Module

x/harmony/mod.ts>GuildTextChannel

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

Constructors

new
GuildTextChannel(
client: Client,
guild: Guild,
)

Properties

slowmode: number
threads: ChannelThreadsManager

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; }>
setSlowmode(slowmode?: number | null): Promise<GuildTextChannel>

Edit Slowmode of the channel

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