Readonly
_createdThe timestamp that the message was created at.
When the message was deleted, if it was
The timestamp that the message was updated at, if relevant
Readonly
channelThe ID of the channel
Readonly
clientThe content of the message
Readonly
createdThe ID of the user who created this message (Note: If this event has createdByBotId or createdByWebhookId present, this field will still be populated, but can be ignored. In these cases, the value of this field will always be Ann6LewA)
Readonly
createdThe ID of the webhook who created this message, if it was created by a webhook
Whether the message has been deleted
Embeds contained within this message
Readonly
groupThe ID of the group this message was posted in
Identifier of this structrure
Readonly
isIf set, this message will only be seen by those mentioned or replied to.
Readonly
isBool value to wether message is a reply or not
Readonly
isIf set, this message did not notify, mention or reply recipients.
Optional
mentionsThe mentions within this message
Bare data of this structure
Readonly
replyThe ID of the messages that this is replying to.
Readonly
serverThe ID of the server this message belongs to
Readonly
typeThe type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.
Returns the ID of the user who sent this message.
Returns the date and time the message was deleted, if it was.
Returns the date and time the message was last updated, if relevant.
Returns the url of this message
Taken from https://github.com/discordjs/discord.js/blob/8e8d9b490a71de6cabe6f16375d7549a7c5c3737/src/structures/Base.js#L20 Licensed under the Apache License 2.0 https://github.com/discordjs/discord.js/blob/8e8d9b490a71de6cabe6f16375d7549a7c5c3737/LICENSE
Update details of this structure
Deletes either a whole reaction emote from a message or a specific user's if a userId is provided.
The ID of the emote to delete.
Optional
userId: stringA promise that resolves when the emote has been deleted.
Edit message content.
The new content of the message.
A promise that resolves with the updated message.
Send a message that replies to this message. It mentions the user who sent this message.
let replyObj = {
content: 'This is text, supports **markdown**.',
embeds: [{
title: 'This is an embed title!',
description: 'A description may go here'
}]
};
message.reply(replyObj)
The content of the message to send.
Send a message in the same channel as this message.
let replyObj = {
content: 'This is text, supports **markdown**.',
embeds: [{
title: 'This is an embed title!',
description: 'A description may go here'
}]
};
message.send(replyObj)
The content of the message.
Generated using TypeDoc
The base of all structures in this library. All structures that have an ID will extend this class.