ThreadOnlyMethods

Signature

@Mixins(TopicableGuildChannel)export declare class ThreadOnlyMethods extends DiscordBase

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

get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

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

The URL to the channel

Methods

thread(body: ThreadOnlyCreateBodyRequest, reason?: string): Promise<ThreadChannelStructure>;

Create a new thread.

Parameters
body
After name, at least one of the following properties must be provided: any content of `message` or `files`.
reason
The reason for creating the thread, shows up on audit logs.
Returns

A promise that resolves with the created thread.

delete(reason?: string): Promise<this>;
toString(): `<#${string}>`;

Returns a string representation of an object.

setTopic(topic: string | null, reason?: string): Promise<this>;