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.
Create a message in this thread.
The options for creating the message.
Add a reaction to a message in this thread.
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.
Bulk delete messages in this thread.
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 thread.
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.
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 thread.
The ID of the message to edit.
The options for editing the message.
Get a thread member in this thread.
The ID of the user to get the thread member of.
Get the members of this thread.
Get a message in this thread.
The ID of the message to get.
Get messages in this thread.
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 thread.
Get the users who reacted with a specific emoji on a message.
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 members of this thread.
Optional
options: GetThreadMembersOptionsThe options for getting the thread members.
Get the permissions of a member. If providing an id, the member must be cached. The parent channel must be cached as threads themselves do not have permissions.
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.
Static
fromStatic
generateIDStatic
getStatic
getThe flags for this thread 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 approximate number of members in this thread. Stops counting after 50.
The members of this thread.
The number of messages (not including the initial message or deleted messages) in the thread. Stops counting after 50.
The cached messages in this channel.
The name of this channel.
Optional
ownerThe owner of this thread.
The ID of the owner of this thread.
The ID of the parent of this channel, if applicable.
The amount of seconds between non-moderators sending messages.
The thread metadata associated with this thread.
The total number of messages ever sent in the thread. Includes deleted messages.
The type of this channel.
Represents a private thread channel..