Skip to main content

MessageReferenceMaps

MessageReferenceMaps = object

Contains resolved display names for all references in a message, including user mentions, channel mentions, role mentions, and file attachments.

Properties

assets?

optional assets: object

Map of general asset URIs to their metadata. Keys are root://asset/{id} URIs. Use this to display file attachment information.

Index Signature

[key: string]: AssetInformation


channels?

optional channels: MessageReferenceMapChannel[]

Array of channels mentioned in the message. Each entry maps a channel ID to its current name.


imageAssets?

optional imageAssets: object

Map of image asset URIs to their metadata. Keys are root://asset/{id} URIs. Use this to display image previews or thumbnails.

Index Signature

[key: string]: AssetImage


roles?

optional roles: MessageReferenceMapCommunityRole[]

Array of roles mentioned in the message. Each entry maps a role ID to its current name. Includes @All and @Here mentions.


users?

optional users: MessageReferenceMapUser[]

Array of users mentioned in the message. Each entry maps a user ID to their current display name.