import { type Message } from "https://deno.land/x/denord@0.1.0/mod.ts";
Properties
the author of this message (not guaranteed to be a valid user, see below)
The author object follows the structure of the user object, but 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 id, username, and 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
The member object exists in MESSAGECREATE and MESSAGEUPDATE events from text-based guild channels. This allows bots to obtain real-time member data without requiring bots to store member state in memory.
users specifically mentioned in the message array of user objects, with an additional partial member field
The user objects in the mentions array will only have the partial member field present in MESSAGECREATE and MESSAGEUPDATE events from text-based guild channels.
channels specifically mentioned in this message
Not all channel mentions in a message will appear in mentionChannels. Only textual channels that are visible to everyone in a lurkable guild will ever be included. Only crossposted messages (via Channel Following) currently include mentionChannels at all. If no mentions in the message meet these requirements, this field will not be sent.