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

x/harmony/src/structures/threadChannel.ts>ThreadChannel

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

Constructors

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

Properties

appliedTags: string[]
optional
member: ThreadMember
memberCount: number
messageCount: number
metadata: ThreadMetadata
slowmode: number
topic: undefined
totalMessageSent: number

Methods

addUser(user: string | User): Promise<this>
edit(options: { slowmode?: number; name?: string; autoArchiveDuration?: number; archived?: boolean; locked?: boolean; }): Promise<ThreadChannel>

Edit the Guild Thread Channel

fetchMembers(): Promise<Collection<string, ThreadMember>>
join(): Promise<this>
leave(): Promise<this>
removeUser(user: string | User): Promise<this>
setTopic(): Promise<this>

Not possible to set Thread Channel topic