Message

dc_message

Represents a message sent by a user, bot, webhook, or server.

Queryable properties #

Property Type Description
content String The content of the message.
All emojis, mentions, and channels will appear with their ID.
readable_content String The content of the message.
All emojis, mentions, and channels will appear with a more readable representation.1
id String The ID of the message.
channel Channel The channel this message was sent in.
user User, Null The user that sent this message.
Returns null if not sent or triggered by a user, or if the user is not cached.
webhook_id Number, Null The webhook that sent this message, represented by its ID.2
Returns null if not sent by a webhook.
server Server The server this message was written in.
nonce String The nonce of this message.
attachments List of Attachments The attachments in this message.
sticker_ids List of Strings The stickers in this message represented with their IDs.3
referenced_message Message The message that is being referenced or replied to.
type String The type of the message.
link String The URL linking to the message.
flags List of Strings The flags of the message.
creation_timestamp Number The timestamp in unix time milliseconds since message creation.
edit_timestamp Number The timestamp in unix time milliseconds since the message was last edited.
position Number The position of the message in a thread.

  1. If a user is not cached, mentions to them may not get parsed. 

  2. To get the Webhook value, use dc_webhook_from_id

  3. To get Sticker values, use dc_sticker_from_id