Class
TextSource
NotCreatable
Represents a speaker in a TextChannel.
Represents a speaker in a TextChannel.
TextSources provide details on permissions users have in
TextChannels. There may be multiple
TextSources for a user if that user belongs in multiple
TextChannels.
Create TextSources with TextChannel:AddUserAsync(),
which adds a TextSource to the TextChannel as a descendant.
Remove TextSources by calling TextSource.Destroy.
Name of a TextSource is the Player.DisplayName of the user
associated with the TextSource via TextSource.UserId.
To learn more about using TextSources, see In-Experience Text Chat.
Properties 2#
CanSendboolean | Determines whether the user can send messages to the TextChannel.ReadSafe |
UserIdint64 | UserId of the user represented by the TextSource.ReadSafeReadOnlyNotReplicated |
CanSend: boolean#
ReadSafe
Determines whether the user can send messages to the TextChannel.
If false, user can only read messages in the TextChannel.
UserId: int64#
ReadOnlyNotReplicatedReadSafe
UserId of the user represented by the TextSource.
Support for non-user entities may be added in the future via passing in negative numbers for this property.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild