A string that will mention this channel.
The parent of this channel, if applicable. This will be a text/announcement/forum channel if we're in a thread, category otherwise.
The threads in this channel. The returned collection is disposable.
Convert this announcement channel to a text channel.
Create an invite for this channel. If the guild is not a COMMUNITY
server, invites can only be made to last 30 days.
The options for the invite.
Create a message in this channel.
The options for the message.
Add a reaction to a message in this channel.
The ID of the message to add a reaction to.
The reaction to add to the message. name:id
for custom emojis, and the unicode codepoint for default emojis.
Create a webhook in this channel.
The options to create the webhook with.
Crosspost a message in this channel.
The ID of the message to crosspost.
Bulk delete messages in this channel.
The IDs of the messages to delete. Any duplicates or messages older than two weeks will cause an error.
Optional
reason: stringThe reason for deleting the messages.
Remove a reaction from a message in this channel.
The ID of the message to remove a reaction from.
The reaction to remove from the message. name:id
for custom emojis, and the unicode codepoint for default emojis.
The user to remove the reaction from, @me
for the current user (default).
Remove all, or a specific emoji's reactions from a message in this channel.
The ID of the message to remove reactions from.
Optional
emoji: stringThe reaction to remove from the message. name:id
for custom emojis, and the unicode codepoint for default emojis. Omit to remove all reactions.
Edit this channel.
The options for editing the channel.
Edit a message in this channel.
The ID of the message to edit.
The options for editing the message.
Edit a permission overwrite on this channel.
The ID of the permission overwrite to edit.
The options for editing the permission overwrite.
Follow this announcement channel.
The ID of the channel crossposted messages should be sent to. The client must have the MANAGE_WEBHOOKS
permission in this channel.
Get the invites of this channel.
Get a message in this channel.
The ID of the message to get.
Get messages in this channel.
Optional
options: GetChannelMessagesOptions<Uncached | AnyTextableChannel>The options for getting the messages. before
, after
, and around
All are mutually exclusive.
Get the pinned messages in this channel.
Get the public archived threads in this channel.
Optional
options: GetArchivedThreadsOptionsThe options for getting the public archived threads.
Get the users who reacted with a specific emoji on a message in this channel.
The ID of the message to get reactions from.
The reaction to remove from the message. name:id
for custom emojis, and the unicode codepoint for default emojis.
Optional
options: GetReactionsOptionsThe options for getting the reactions.
Get the permissions of a member. If providing an id, the member must be cached.
The member to get the permissions of.
Purge an amount of messages from this channel.
The options to purge. before
, after
, and around
All are mutually exclusive.
Create a thread from an existing message in this channel.
The ID of the message to create a thread from.
The options for creating the thread.
Create a thread without an existing message in this channel.
The options for creating the thread.
Static
fromStatic
generateIDStatic
getStatic
getThe default auto archive duration for threads created in this channel.
The id of the guild this channel is in.
Optional
lastThe last message sent in this channel. This will only be present if a message has been sent within the current session.
The ID of last message sent in this channel.
The cached messages in this channel.
The name of this channel.
If this channel is age gated.
The ID of the parent of this channel, if applicable.
The permission overwrites of this channel.
The position of this channel on the sidebar.
The amount of seconds between non-moderators sending messages. Always zero in announcement channels.
The topic of the channel.
The threads in this channel.
Represents a guild announcement channel.
Merge Target
AnnouncementChannel