PlayerText
Words a player wrote, as a playerText() field holds them: opaque, so a
system never reads them unfiltered. filterText(step, text) gives an
authoritative step the text filtered for every player, or a refusal;
findMatchingText, isTextEqual and readTextLength compare and
measure it without reading it. It cannot be written to a trait, a save
or a stream: the types refuse it, and its JSON encoding throws. As
Roblox’s TextFilterResult, which a game turns into a string only
through the filter.
Methods
Section titled “Methods”[inspect]()
Section titled “[inspect]()”[inspect]():
string
Returns
Section titled “Returns”string
[toPrimitive]()
Section titled “[toPrimitive]()”[toPrimitive]():
string
Returns
Section titled “Returns”string
toJSON()
Section titled “toJSON()”toJSON():
never
Throws: a player’s words are never written as JSON.
Returns
Section titled “Returns”never
toString()
Section titled “toString()”toString():
string
[PlayerText]: never the words.
Returns
Section titled “Returns”string