Skip to content

NewsChannel

Represents a news channel in a guild.

Kind: global class
Extends: BaseGuildChannel

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data object to initialize the instance with.
guildIdstringThe ID of the guild associated with the instance.
clientClientThe client instance associated with the instance.

Follows the channel using the specified options.

Kind: instance method of NewsChannel
Returns: Promise - A promise that resolves when the channel is successfully followed.

ParamTypeDescription
optionsObjectThe 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.

ParamTypeDescription
messageMessageThe message to crosspost.