NewsChannel
NewsChannel ⇐ BaseGuildChannel
Section titled “NewsChannel ⇐ BaseGuildChannel”Represents a news channel in a guild.
Kind: global class
Extends: BaseGuildChannel
- NewsChannel ⇐
BaseGuildChannel- new NewsChannel([data], guildId, client)
- .follow(options) ⇒
Promise - .crosspost(message) ⇒
Promise.<void>
new NewsChannel([data], guildId, client)
Section titled “new NewsChannel([data], guildId, client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object to initialize the instance with. |
| guildId | string | The ID of the guild associated with the instance. |
| client | Client | The client instance associated with the instance. |
newsChannel.follow(options) ⇒ Promise
Section titled “newsChannel.follow(options) ⇒ Promise”Follows the channel using the specified options.
Kind: instance method of NewsChannel
Returns: Promise - A promise that resolves when the channel is successfully followed.
| Param | Type | Description |
|---|---|---|
| options | Object | The options for following the channel. |
newsChannel.crosspost(message) ⇒ Promise.<void>
Section titled “newsChannel.crosspost(message) ⇒ Promise.<void>”Crossposts a message to another channel.
Kind: instance method of NewsChannel
Returns: Promise.<void> - - A promise that resolves when the crossposting is complete.
| Param | Type | Description |
|---|---|---|
| message | Message | The message to crosspost. |