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 other user in this direct message.
The type of this channel.
A string that will mention this channel.
Create a message in this channel.
The options for creating 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.
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.
Edit a message in this channel.
The ID of the message to edit.
The options for editing the message.
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 users who reacted with a specific emoji on a message.
The iIDd 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.
Static
fromStatic
generateIDStatic
getStatic
get
Represents a direct message with a user.