Optional
activityThe activity associated with this message.
Optional
applicationThe application associated with this message. This can be present in two scenarios:
The ID of the application associated with this message. This can be present in two scenarios:
The attachments on this message.
The author of this message.
The ID of the channel this message was created in.
The components on this message.
The content of this message.
The timestamp at which this message was last edited.
The embeds on this message.
The flags on this message.
The ID of the guild this message is in.
Optional
interactionThe interaction info, if this message was the result of an interaction.
Use Message#interactionMetadata instead.
Optional
interactionThe interaction info, if this message was the result of an interaction.
The member that created this message, if this message is in a guild.
Optional
mentionChannels mentioned in a CROSSPOSTED
channel follower message. See Discord's docs for more information.
The mentions in this message.
The ids of the channels mentioned in this message.
If @everyone/@here is mentioned in this message.
The members mentioned in this message.
The ids of the roles mentioned in this message.
The users mentioned in this message.
Optional
messageIf this message is a REPLY
or THREAD_STARTER_MESSAGE
, some info about the referenced message.
Optional
nonceA nonce for ensuring a message was sent.
If this message is pinned.
Optional
pollThe poll on this message, if any.
Optional
positionThis message's relative position, if in a thread.
The reactions on this message.
Optional
referencedIf this message is a REPLY
or THREAD_STARTER_MESSAGE
, this will be the message that's referenced.
Optional
roleThe data of the role subscription purchase or renewal that prompted this message.
Optional
stickerThe sticker items on this message.
Optional
threadThe thread associated with this message, if any.
The timestamp at which this message was sent.
If this message was read aloud.
The type of this message.
Optional
webhookIDThe webhook associated with this message, if sent via a webhook. This only has an id
property.
The channel this message was created in.
The guild this message is in. This will throw an error if the guild is not cached.
A link to this message.
Remove a reaction from this message.
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).
Delete this message as a webhook.
The token of the webhook.
Options for deleting the message.
Get the users that voted on a poll answer.
The ID of the poll answer to get voters for.
Optional
options: GetPollAnswerUsersOptionsThe options for getting the voters.
Get the users who reacted with a specific emoji on this message.
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.
Whether this message belongs to a cached guild channel. The only difference on using this method over a simple if statement is to easily update all the message properties typing definitions based on the channel it belongs to.
Whether this message belongs to a direct message channel (PrivateChannel or uncached). The only difference on using this method over a simple if statement is to easily update all the message properties typing definitions based on the channel it belongs to.
Create a thread from this message.
The options for creating the thread.
Static
generateIDStatic
getStatic
get
Represents a message.