You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en-us/chat/in-experience-text-chat.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,9 @@ Text chat uses the [client‑server](../projects/client-server.md) model, with a
49
49
50
50
- If the message is a regular chat message, it fires the `Class.TextChatService.SendingMessage` event to display the message to the sender on the sending client. At the same time, `Class.TextChannel:SendAsync()` passes the message to the server.
51
51
52
-
1. The server fires `Class.TextChannel.ShouldDeliverCallback` to determine whether to deliver the message to other players based on the permissions you set (-- TODO: The permissions you set?) and Roblox community filtering requirements.
52
+
1. The server fires `Class.TextChannel.ShouldDeliverCallback` to determine whether to deliver the message to other players based on permissions and Roblox community filtering requirements.
53
53
54
-
1. If `Class.TextChannel.ShouldDeliverCallback` determines that message is eligible to deliver to other players, the server applies any filters (--TODO: Example filter?) and fires `Class.TextChannel.OnIncomingMessage` twice:
54
+
1. If `Class.TextChannel.ShouldDeliverCallback` determines that message is eligible to deliver to other players, the server applies any filters and fires `Class.TextChannel.OnIncomingMessage` twice:
55
55
56
56
1. The first time is on the sending client and signals that the server is processing the message through the `Class.TextChatService.MessageReceived` event. This event replaces the local message on the sending client with the processed message from the server. The message is identical if the original didn't require filtering.
57
57
@@ -83,7 +83,7 @@ All callbacks are expected to be non-yielding functions. Yielding or waiting for
83
83
-`Class.TextChannel.ShouldDeliverCallback` - This callback should be defined on the server only. The callback is fired for each `Class.TextSource` child of the text channel when a message is sent to determine whether the message should be delivered. This callback can be used to implement custom message delivery logic that may depend on additional gameplay context, such as:
84
84
85
85
-[Proximity-based chat](./examples/proximity-chat.md) where users can only send messages to those close to them.
86
-
- Preventing users with certain attributes (--TODO: Example?) from sending messages to others.
86
+
- Preventing users with certain attributes from sending messages to others.
87
87
88
88
#### Customizing Message Display
89
89
@@ -151,7 +151,7 @@ Though both systems share the same basic chat functionalities, TextChatService i
151
151
<td>Disable chat</td>
152
152
<td>[Game Settings](../studio/game-settings.md) in Studio and `ChatWindow/ChatSettings` module for hiding the chat window</td>
0 commit comments