Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ReceivedTextChatMessage

One message this page received, as a window draws it.

Property Type Description
block? () => void Blocks its sender on the platform: no message passes either way in any game, and the sender’s voice is muted here. Only while the sender is in the room, which the block names the sender by.
channel string The channel’s name.
id number The room’s id for the message, which a report names.
isOwn boolean Whether the local player sent it themselves.
kind TextChatMessageKind -
mute? () => void Hides its sender’s messages and voice for the recipient in this room. Only on another player’s message, as are block and report.
parts? TextChatPart[] A system message’s parts, where it has more than plain text.
report? (options) => Promise<SendTextChatReportResult> Reports it, with up to 20 messages on each side of it that the reporting player received, and mutes its sender at once. Resolves accepted, or why the room refused; useTextChatSession’s reports then follows it.
sender string | null The key the sender’s entity dumps under, a player or an NPC; null for a system message.
senderName string The sender’s name as the room knows it, empty for a system message.
sentAt number When the room sent it, in epoch milliseconds.
text string The text as the recipient reads it, masked at the recipient’s level.