GuildAnnouncementChannel

class GuildAnnouncementChannel

A guild announcement channel for messages that can be published to followers.

Extends:

Properties

Property

Type

Description

type

5

Text and announcement channels share the text-channel API.

Methods

async GuildAnnouncementChannel.follow(targetChannelId: string, reason: string) → Promise<void>

Follow this announcement channel into another channel.

Parameters:
  • targetChannelId: Channel that should receive published messages.

  • reason: Audit-log reason for creating the follower webhook.

async GuildAnnouncementChannel.publishMessage(messageId: string) → Promise<Message>

Publish a message to followed channels.

Parameters:
  • messageId: The ID of the message to publish.

Returns:

The published message.