@my-swu/simulator-client / MatchChatLookupResponse
Interface: MatchChatLookupResponse
Defined in: packages/ts-sdk/src/generated/types/common.ts:3923
One server-recorded chat message resolved for moderation review.
The payload is the server's own record, not a caller-supplied copy: a moderation report must quote what the match actually broadcast.
Example:
import type { MatchChatLookupResponse } from '@my-swu/simulator-client'
const matchChatLookupResponse: MatchChatLookupResponse = {
"matchId": 'example',
"messageId": 'example',
"createdAtMs": 0,
"chat": {
"seat": "one",
"name": 'example',
"message": 'example',
},
}
console.log(matchChatLookupResponse)Properties
chat
Example:
import type { MatchChatLookupResponse } from '@my-swu/simulator-client'
const matchChatLookupResponse: MatchChatLookupResponse = {
"matchId": 'example',
"messageId": 'example',
"createdAtMs": 0,
"chat": {
"seat": "one",
"name": 'example',
"message": 'example',
},
}
const { chat } = matchChatLookupResponse
console.log(chat)chat:
MatchChatMessage
Defined in: packages/ts-sdk/src/generated/types/common.ts:3927
Server-derived chat payload, including the authoring seat's identity.
createdAtMs
Example:
import type { MatchChatLookupResponse } from '@my-swu/simulator-client'
const matchChatLookupResponse: MatchChatLookupResponse = {
"matchId": 'example',
"messageId": 'example',
"createdAtMs": 0,
"chat": {
"seat": "one",
"name": 'example',
"message": 'example',
},
}
const { createdAtMs } = matchChatLookupResponse
console.log(createdAtMs)createdAtMs:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:3931
When the server recorded the message, in Unix milliseconds.
matchId
Example:
import type { MatchChatLookupResponse } from '@my-swu/simulator-client'
const matchChatLookupResponse: MatchChatLookupResponse = {
"matchId": 'example',
"messageId": 'example',
"createdAtMs": 0,
"chat": {
"seat": "one",
"name": 'example',
"message": 'example',
},
}
const { matchId } = matchChatLookupResponse
console.log(matchId)matchId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:3935
Match the message was recorded in.
messageId
Example:
import type { MatchChatLookupResponse } from '@my-swu/simulator-client'
const matchChatLookupResponse: MatchChatLookupResponse = {
"matchId": 'example',
"messageId": 'example',
"createdAtMs": 0,
"chat": {
"seat": "one",
"name": 'example',
"message": 'example',
},
}
const { messageId } = matchChatLookupResponse
console.log(messageId)messageId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:3939
History entry id of the message.
