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

x/harmony/src/structures/guildTextChannel.ts>GuildTextChannel

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

Constructors

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

Properties

slowmode: number

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

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