The 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.
The topic of the channel.
The threads in this channel.
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 text channel to a announcement 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.
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 an announcement channel to this channel.
The ID of the channel to follow the announcement channel to.
Get the invites of this channel.
Get the private archived threads the current user has joined in this channel.
Optional
options: GetArchivedThreadsOptionsThe options for getting the joined private archived threads.
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 private archived threads in this channel.
Optional
options: GetArchivedThreadsOptionsThe options for getting the private archived threads.
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
get
Represents a guild text channel.