BaseGuildChannel
BaseGuildChannel ⇐ TextBasedChannels
Section titled “BaseGuildChannel ⇐ TextBasedChannels”Represents a base guild channel that extends the TextBasedChannels class.
Kind: global class
Extends: TextBasedChannels
Properties
| Name | Type | Description |
|---|---|---|
| threads | ThreadManager | The thread manager for this channel. |
- BaseGuildChannel ⇐
TextBasedChannels- new BaseGuildChannel(data, guildId, client)
- .fetchPrivateThreads([options]) ⇒
Promise.<FetchedThreads>
new BaseGuildChannel(data, guildId, client)
Section titled “new BaseGuildChannel(data, guildId, client)”Constructs a new instance of the ThreadChannel class.
| Param | Type | Description |
|---|---|---|
| data | Object | The data object containing information about the channel. |
| guildId | string | The ID of the guild that the channel belongs to. |
| client | Client | The client instance. |
baseGuildChannel.fetchPrivateThreads([options]) ⇒ Promise.<FetchedThreads>
Section titled “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.
| Param | Type | Default | Description |
|---|---|---|---|
| [options] | Object | Optional parameters for the fetch request. | |
| [options.before] | string | The ID of the thread to fetch threads before. | |
| [options.limit] | number | 25 | The maximum number of threads to fetch. |