Skip to content
Roblox API Reference

TextFilterResult

Represents the result of a call to TextService:FilterStringAsync(), used to distribute a filtered string accordingly.
  • Not creatable
  • Not replicated
Memory category
Instances
Own members
3
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods45

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byTextFilterResult3
  • TextFilterResult:GetNonChatStringForBroadcastAsync(): string
    Returns the text in a properly filtered manner for all users.
    • Yields
    • Capabilities: UI
    Returns
    TypeDescription
    string
    Filtered text string.
  • TextFilterResult:GetNonChatStringForUserAsync(toUserId: number): string
    Returns the text in a properly filtered manner for the specified Player.UserId based on age and other details.
    • Yields
    • Capabilities: UI
    Parameters
    ParameterDescription
    toUserId: number
    Player.UserId of the user intended to see/receive the text.
    Returns
    TypeDescription
    string
    Filtered text string.
  • TextFilterResult:GetChatForUserAsync(toUserId: number): string
    Deprecated: This method is deprecated and returns an empty string. Text filtering pertaining to chat should be done through TextChatService, and experiences that do not properly filter player-generated chat text may be subject to moderation.
    Returns the text in a properly filtered manner for the specified Player.UserId.
    • Deprecated
    • Yields
    • Capabilities: UI
    Parameters
    ParameterDescription
    toUserId: number
    Player.UserId of the user being chatted.
    Returns
    TypeDescription
    string
    Filtered text string.

Events10

Inherited fromObject1
Inherited fromInstance9