Add a user to a group channel.
The ID of the group to add the user to.
The options for adding the recipient.
Create a direct message. This will not create a new channel if you have already started a dm with the user.
The ID of the recipient of the direct message.
Create a group dm.
The options for creating the group dm.
Create an invite for a channel.
The ID of the channel to create an invite for.
The options for creating the invite.
Create a message in a channel.
The ID of the channel to create the message in.
The options for creating the message.
Add a reaction to a message.
The ID of the channel the message is in.
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 stage instance.
The ID of the channel to create the stage instance on.
The options for creating the stage instance.
Crosspost a message in an announcement channel.
The ID of the channel to crosspost the message in.
The ID of the message to crosspost.
Delete an invite.
The code of the invite to delete.
Optional
reason: stringThe reason for deleting the invite.
Delete a message.
The ID of the channel to delete the message in.
The ID of the message to delete.
Optional
reason: stringThe reason for deleting the message.
Bulk delete messages.
The ID of the channel to delete the messages in.
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.
Delete a permission overwrite.
The ID of the channel to delete the permission overwrite in.
The ID of the permission overwrite to delete.
Optional
reason: stringThe reason for deleting the permission overwrite.
Remove a reaction from a message.
The ID of the channel the message is in.
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 channel the message is in.
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 a channel.
The ID of the channel to edit.
The options for editing the channel.
Edit a message.
The ID of the channel the message is in.
The ID of the message to edit.
The options for editing the message.
Edit a permission overwrite.
The ID of the channel to edit the permission overwrite for.
The ID of the permission overwrite to edit.
The options for editing the permission overwrite.
Edit a stage instance.
The ID of the channel to edit the stage instance on.
The options for editing the stage instance.
Follow an announcement channel.
The ID of the channel to follow announcements from.
The ID of the channel crossposted messages should be sent to. The client must have the MANAGE_WEBHOOKS
permission in this channel.
Get a channel.
The ID of the channel to get.
Get an invite.
The code of the invite to get.
The options for getting the invite.
Get the invites of a channel.
The ID of the channel to get the invites of.
Get the private archived threads the current user has joined in a channel.
The ID of the channel to get the archived threads from.
Optional
options: GetArchivedThreadsOptionsThe options for getting the archived threads.
Get a message in a channel.
The ID of the channel the message is in
The ID of the message to get.
Get messages in a channel.
The ID of the channel to get messages from.
Optional
options: GetChannelMessagesOptions<T>The options for getting messages. before
, after
, and around
All are mutually exclusive.
Get an async iterator for getting messages in a channel.
The ID of the channel to get messages from.
Optional
options: GetChannelMessagesIteratorOptions<T>The options for getting messages. before
, after
, and around
All are mutually exclusive.
Get the pinned messages in a channel.
The ID of the channel to get the pinned messages from.
Get the private archived threads in a channel.
The ID of the channel to get the archived threads from.
Optional
options: GetArchivedThreadsOptionsThe options for getting the archived threads.
Optional
options: GetArchivedThreadsOptionsGet the public archived threads in a channel.
The ID of the channel to get the archived threads from.
Optional
options: GetArchivedThreadsOptionsThe options for getting the archived threads.
Get the users who reacted with a specific emoji on a message.
The ID of the channel the message is in.
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 stage instance associated with a channel.
The ID of the channel to get the stage instance on.
Get a thread member.
The ID of the thread.
The ID of the user to get the thread member of.
Get the members of a thread.
The ID of the thread.
Optional
options: GetThreadMembersOptionsThe options for getting the thread members.
Get the list of usable voice regions. Moved to misc
.
Pin a message in a channel.
The ID of the channel to pin the message in.
The ID of the message to pin.
Optional
reason: stringThe reason for pinning the message.
Purge an amount of messages from a channel.
The ID of the channel to purge.
The options to purge. before
, after
, and around
All are mutually exclusive.
Create a thread from an existing message.
The ID of the channel to create the thread in.
The ID of the message to create the thread from.
The options for starting the thread.
Create a thread in a forum channel.
The ID of the channel to start the thread in.
The options for starting the thread.
Create a thread without an existing message.
The ID of the channel to start the thread in.
The options for starting the thread.
Unpin a message in a channel.
The ID of the channel to unpin the message in.
The ID of the message to unpin.
Optional
reason: stringThe reason for unpinning the message.
Various methods for interacting with channels.