Skip to content

Class · inherits Instance

TextFilterResult

Official docs ↗

Represents the result of a call to TextService.FilterStringAsync, used to distribute a filtered string accordingly.

About TextFilterResult

Represents the result of a call to TextService.FilterStringAsync. Used to distribute a filtered string accordingly.

Methods 2

  • GetNonChatStringForBroadcastAsync() → stringYieldsReturns the text in a properly filtered manner for all users.

    Returns the text in a properly filtered manner for all users. This should be used in the context of non-chat text that every user can see, such as for a dialog that lets a user write a message on a sign, visible to all users on the server even after the author has left.

  • GetNonChatStringForUserAsync(toUserId: int64) → stringYieldsReturns the text in a properly filtered manner for the specified Player.UserId based on age and other details.

    Returns the text in a properly filtered manner for the specified Player.UserId based on age and other details. This should be used in the context of non-chat text that one specific user can see, such as the name of a pet.

TextFilterResult also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.