Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions content/en-us/reference/engine/classes/TextChannel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,23 @@ callbacks:
returns anything else (including `nil`), the message won't be delivered to
that client, although the sender will see the message regardless.

The sender can be referenced by `Class.TextChatMessage.TextSource`.
The sender can be referenced by `Class.TextChatMessage.TextSource`,
while the receiver is the `textSource` argument. Note that the sender
and receiver can be the same, as the callback iterates through all possible
receivers. In Roblox Studio, you will be the only sender and recipient of a
message while in solo **Play** mode.
code_samples: []
parameters:
- name: message
type: TextChatMessage
default:
summary: ''
summary: |
The message being sent, which also contains the sender of the message.
- name: textSource
type: TextSource
default:
summary: ''
summary: |
The `Class.TextSource` of the user who will be receiving the message.
returns:
- type: Tuple
summary: ''
Expand Down