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.
Returns
Section titled “Returns”Example
Section titled “Example”const { messages, send } = useTextChat();return messages.map((message) => <p key={message.id}>{message.text}</p>);