ThreadChannel

Signature

export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>, Omit<TextBaseGuildChannel, 'edit' | 'parentId' | 'delete'>

Private types

IChannelTypesInterface
interface IChannelTypes {    GuildStageVoice: StageChannel;    GuildMedia: MediaChannel;    DM: DMChannel;    GuildForum: ForumChannel;    AnnouncementThread: ThreadChannel;    PrivateThread: ThreadChannel;    PublicThread: ThreadChannel;    GuildDirectory: DirectoryChannel;    GuildVoice: VoiceChannel;    GuildText: TextGuildChannel;    GuildCategory: CategoryChannel;    GuildAnnouncement: NewsChannel;}

Properties

urlGetter
get url(): `https://discord.com/channels/${string}/${string}`;

The URL to the channel

get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

nsfw?: boolean | undefined;
threadMetadata?: { archived: boolean; autoArchiveDuration: ThreadAutoArchiveDuration; archiveTimestamp: string; locked: boolean; invitable?: boolean | undefined; createTimestamp?: string | undefined; } | undefined;
topic?: string | null | undefined;

Methods

join(): Promise<this>;
setRatelimitPerUser(rate_limit_per_user: number | null | undefined): Promise<this>;
pin(reason?: string): Promise<this>;
unpin(reason?: string): Promise<this>;
setTags(applied_tags: string[], reason?: string): Promise<this>;
setArchived(archived?: boolean, reason?: string): Promise<this>;
setInvitable(invitable?: boolean, reason?: string): Promise<this>;
setLocked(locked?: boolean, reason?: string): Promise<this>;
delete(reason?: string): Promise<this>;
toString(): `<#${string}>`;

Returns a string representation of an object.

setPosition(position: number, reason?: string): Promise<this>;
setName(name: string, reason?: string): Promise<this>;
setParent(parent_id: string | null, reason?: string): Promise<this>;
setNsfw(nsfw?: boolean, reason?: string): Promise<this>;