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

useTextChat

useTextChat(): UseTextChatResult

The text chat on this page, for a window a game draws itself: the messages the local player received, less those of the players the local player muted or blocked, each other player’s with mute, block and report; the channels; and send. The engine’s player list keeps mute, block and report whatever window a game draws. As Roblox’s TextChatService with its TextChannels.

UseTextChatResult

const { messages, send } = useTextChat();
return messages.map((message) => <p key={message.id}>{message.text}</p>);