Skip to main content

Interface: Message

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / Message

Interface: Message

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:66

A message of a list, as GET /v1/messages sends it

The one item type of fetchMessages, getComments and getChatMessages (chat messages and comments alike: the list does not say which it is, ask for one type). launchpad-backend queryPublicMessagesUnified builds it; it carries no type, holderTier or isPinned, and its id is the message id string (messageId, the same value), not a number.

Since​

7.0.0

Since​

9.0.0 - the backend's item (messageId, user, reactions: { counts, userReacted }, updatedAt null when never edited); the type, holderTier and isPinned the backend never sends are gone

Properties​

content​

content: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:82

Content text


createdAt​

createdAt: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:84

Creation timestamp (ISO 8601)


deletedAt​

deletedAt: string | null

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:88

Deletion timestamp (ISO 8601), null when not deleted


flagCount​

flagCount: number

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:90

Number of flags against the message


id​

id: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:68

The message id (msg-... / chat-...); equals messageId


messageId​

messageId: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:70

The message id: key of reactions, flags, pins and every message route


reactions​

reactions: MessageReactionSummary

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:92

Reactions of the message


tokenImage​

tokenImage: string | null

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:74

Token image URL, or null


tokenName​

tokenName: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:72

Token name (lowercase)


updatedAt​

updatedAt: string | null

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:86

Update timestamp (ISO 8601), null when never edited


user​

user: UserProfileInfo

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:78

Author's profile (fullName falls back to the address when the author has no name)


userAddress​

userAddress: string

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:76

Author's wallet address


userProfile​

userProfile: UserProfileInfo

Defined in: packages/launchpad-sdk/dist/types/messages.dto.d.ts:80

The same object as user (kept by the backend for comment consumers)