The content of the message. This property requires the GatewayIntentBits.MessageContent privileged intent in a guild for messages that do not mention the client.
Represents a message on Discord.
The id of the application of the interaction that sent this message, if any
A collection of attachments in the message - e.g. Pictures - mapped by their ids. This property requires the GatewayIntentBits.MessageContent privileged intent in a guild for messages that do not mention the client.
Whether the message is bulk deletable by the client user
The channel that the message was sent in
The id of the channel the message was sent in
The message contents with all mentions replaced by the equivalent text. If mentions cannot be resolved to a name, the relevant mention in the message content will not be converted.
The client that instantiated this
An array of action rows in the message. This property requires the GatewayIntentBits.MessageContent privileged intent in a guild for messages that do not mention the client.
The time the message was sent at
The timestamp the message was sent at
Whether the message is crosspostable by the client user
Whether the message is deletable by the client user
Whether the message is editable by the client user
An array of embeds in the message - e.g. YouTube Player. This property requires the GatewayIntentBits.MessageContent privileged intent in a guild for messages that do not mention the client.
Supplemental application information for group activities
Whether this message has a thread associated with it
The message's id
Partial data of the interaction that this message is a reply to
Represents the author of the message as a guild member. Only available if the message comes from a guild where the author is still a member
All valid mentions that the message contains
A random number or string used for checking message delivery This is only received after the message was sent successfully, and lost if re-fetched
Whether the message is pinnable by the client user
Whether or not this message is pinned
A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread.
A manager of the reactions belonging to this message
The data of the role subscription purchase or renewal. This is present on MessageType.RoleSubscriptionPurchase messages.
Whether or not this message was sent by Discord, not actually a user (e.g. pin notifications)
The thread started by this message This property is not suitable for checking whether a message has a thread, use hasThread instead.
Whether or not the message was Text-To-Speech
The type of the message
The URL to jump to this message
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
Similar to createReactionCollector but in promise form. Resolves with a collection of reactions that pass the specified filter.
Creates a message component interaction collector.
Creates a reaction collector.
Publishes a message in an announcement channel to all channels following it.
Deletes the message.
Edits the content of the message.
Used mainly internally. Whether two messages are identical in properties. If you want to compare messages without checking all the properties, use
message.id === message2.id, which is much more efficient. This method allows you to see if there are differences in content, embeds, attachments, nonce and tts properties.
Fetch this message.
Fetches the Message this crosspost/reply/pin-add references, if available to the client
Fetches the webhook used to create this message.
Whether this message is from a guild.
Pins this message to the channel's pinned messages.
Adds a reaction to the message.
Removes the attachments from this message.
Send an inline reply to this message.
Resolves a component by a custom id.
Create a new public thread from this message
Suppresses or unsuppresses embeds on a message.
When concatenated with a string, this automatically concatenates the message's content instead of the object.
Unpins this message from the channel's pinned messages.