DiscordMessage
Parameters
id of the message.
id of the channel the message was sent in.
id of the guild the message was sent in.
The author of this message.
The author is only a valid user in the case where the message is generated by a user or bot user.
If the message is generated by a webhook, the author object corresponds to the webhook's DiscordWebhook.id, DiscordWebhook.name, and DiscordWebhook.avatar. You can tell if a message is generated by a webhook by checking for the webhookId on the message object.
Member properties for this message's author.
It only exists in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channels.
Contents of the message.
When this message was edited, null if never.
Whether this was a text-to-speech message.
Whether this message mentions everyone.
Users specifically mentioned in the message.
Roles specifically mentioned in this message.
Channels specifically mentioned in this message.
Not all channel mentions in a message will appear in mentionedChannels:
Only textual channels that are visible to everyone in a lurkable guild will ever be included.
Only crossposted messages (via Channel Following) currently include mentionedChannels at all.
If no mentions in the message meet these requirements, this field will not be sent.
Any attached files.
Any embedded content.
reactions to the message.
Used for validating a message was sent.
Whether this message is pinned.
If the message is generated by a webhook, this is the webhook's id.
Type of message.
Sent with Rich Presence-related chat embeds.
Sent with Rich Presence-related chat embeds.
Reference data sent with crossposted messages and replies.
Message flags.
The stickers sent with the message (bots currently can only receive messages with stickers, not send).
the message associated with messageReference.
RoleSubscription object data of the role subscription purchase or renewal that prompted this message.
if the message is a response to an Interaction, this is the id of the interaction's application
a list of components which have been added to this message