Abstract

ThreadOnlyChannel

export abstract class ThreadOnlyChannel extends TextBasedChannelMixin(GuildChannel, true, [
'send',
'lastMessage',
'lastPinAt',
'bulkDelete',
'sendTyping',
'createMessageCollector',
'awaitMessages',
'createMessageComponentCollector',
'awaitMessageComponent',
])
export abstract class ThreadOnlyChannel extends TextBasedChannelMixin(GuildChannel, true, [
'send',
'lastMessage',
'lastPinAt',
'bulkDelete',
'sendTyping',
'createMessageCollector',
'awaitMessages',
'createMessageComponentCollector',
'awaitMessageComponent',
])
Represents symbols utilised by thread-only channels.

Extends

TextBasedChannelMixin(GuildChannel, true, [ 'send', 'lastMessage', 'lastPinAt', 'bulkDelete', 'sendTyping', 'createMessageCollector', 'awaitMessages', 'createMessageComponentCollector', 'awaitMessageComponent',])
availableTags:GuildForumTag[]
The set of tags that can be used in this channel.
defaultAutoArchiveDuration:ThreadAutoArchiveDuration | null
The default auto archive duration for newly created threads in this channel.
defaultReactionEmoji:DefaultReactionEmoji | null
The emoji to show in the add reaction button on a thread in a guild forum channel
defaultSortOrder:SortOrderType | null
The default sort order mode used to order posts
defaultThreadRateLimitPerUser:number | null
The initial rate limit per user (slowmode) to set on newly created threads in a channel.
nsfw:boolean
If this channel is considered NSFW.
rateLimitPerUser:number | null
The rate limit per user (slowmode) for this channel.
A manager of the threads belonging to this channel
topic:string | null
The topic of this channel.
The type of the channel
createInvite(options?):Promise<Invite>
Creates an invite to this guild channel.
NameTypeOptionalDescription
optionsInviteCreateOptionsYesThe options for creating the invite
fetchInvites(cache?):Promise<Collection<string, Invite>>
Fetches a collection of invites to this guild channel. Resolves with a collection mapping invites by their codes.
NameTypeOptionalDescription
cachebooleanYesWhether to cache the fetched invites
setAvailableTags(availableTags, reason?):Promise<this>
Sets the available tags for this forum channel
NameTypeOptionalDescription
availableTagsGuildForumTagData[]NoThe tags to set as available in this channel
reasonstringYesReason for changing the available tags
setDefaultAutoArchiveDuration(defaultAutoArchiveDuration, reason?):Promise<this>
Sets the default auto archive duration for all newly created threads in this channel.
NameTypeOptionalDescription
defaultAutoArchiveDurationThreadAutoArchiveDurationNoThe new default auto archive duration
reasonstringYesReason for changing the channel's default auto archive duration
setDefaultReactionEmoji(defaultReactionEmoji, reason?):Promise<this>
Sets the default reaction emoji for this channel
NameTypeOptionalDescription
defaultReactionEmojiDefaultReactionEmoji | nullNoThe emoji to set as the default reaction emoji
reasonstringYesReason for changing the default reaction emoji
setDefaultSortOrder(defaultSortOrder, reason?):Promise<this>
Sets the default sort order mode used to order posts
NameTypeOptionalDescription
defaultSortOrderSortOrderType | nullNoThe default sort order mode to set on this channel
reasonstringYesReason for changing the default sort order
setDefaultThreadRateLimitPerUser(defaultThreadRateLimitPerUser, reason?):Promise<this>
Sets the default rate limit per user (slowmode) for new threads in this channel
NameTypeOptionalDescription
defaultThreadRateLimitPerUsernumberNoThe rate limit to set on newly created threads in this channel
reasonstringYesReason for changing the default rate limit
setTopic(topic, reason?):Promise<this>
Sets a new topic for the guild channel.
NameTypeOptionalDescription
topicstring | nullNoThe new topic for the guild channel
reasonstringYesReason for changing the guild channel's topic