Skip to content

BaseGuildChannel

BaseGuildChannel ⇐ TextBasedChannels

Represents a base guild channel that extends the TextBasedChannels class.

Kind: global class
Extends: TextBasedChannels
Properties

NameTypeDescription
threadsThreadManagerThe thread manager for this channel.

new BaseGuildChannel(data, guildId, client)

Constructs a new instance of the ThreadChannel class.

ParamTypeDescription
dataObjectThe data object containing information about the channel.
guildIdstringThe ID of the guild that the channel belongs to.
clientClientThe client instance.

baseGuildChannel.fetchPrivateThreads([options]) ⇒ Promise.<FetchedThreads>

Fetches private threads for the current channel.

Kind: instance method of BaseGuildChannel
Returns: Promise.<FetchedThreads> - - A promise that resolves to a FetchedThreads object containing the fetched threads.

ParamTypeDefaultDescription
[options]ObjectOptional parameters for the fetch request.
[options.before]stringThe ID of the thread to fetch threads before.
[options.limit]number25The maximum number of threads to fetch.