This is an object with the following fields:
The user's ID. This is unique within an application.
The user's short name. In most cases, Cord components will prefer using this name over
name when set.
The primary display name of the user. This is a readonly field that's provided as a convenience. Its value is the user's shortName or name, preferring shortName if both are set, or the string "unknown" if neither is set.
The secondary display name of the user, in cases where you might want to display a secondary name (such as in a subtitle). This is a readonly field that's provided as a convenience. Its value is the user's name or shortName, preferring name if both are set, or the string "Unknown" if neither is set.
string | null
A URL to the user's profile picture.
Any metadata that has been set for the user.
"action_message" | "user_message"
The type of message this is. A
user_message is a message that the author sent. An
action_message is a message about something that happened, such as the thread being resolved. The default value is
The ID for the message. If a message is created with no ID, a random UUID-based ID will be automatically created for it.
The URL of the icon to show next to the message. This is only used for
action_message messages; other messages show the avatar of the author. If an
action_message does not have an icon set, no icon is shown.
The timestamp when this message was created. The default value is the current time.
Arbitrary key-value pairs that can be used to store additional information.
A URL where the message can be seen. This determines where a user is sent when they click on a reference to this message, such as in a notification. If unset, it defaults to the thread's URL.
The content of the message.
The ID for the group this message belongs to.
The ID for the thread this message is part of.
A plaintext version of the structured message content.
The reactions to this message.
This is an array of objects, each of which has the following fields:
The ID of the user who reacted to the message.
The timestamp of when the reaction was created.
The items attached to this message.
A list of IDs of the users that have seen the message.
Date | null
The timestamp when this message was deleted, if it was. If unset, the message is not deleted.
Date | null
The timestamp when this message was last edited, if it ever was. If unset, the message does not show as edited.
string | null
An optional translation key used for this message. This is useful for system-generated messages where you might want to translate or customize them at runtime. See the translations documentation
for more information.
A optional space separated list of classnames to add to the message.
If set, Cord won't analyze links in the message to generate previews.