TextChatCommand.Triggered returns transformed unfilteredText string

The second value returned from the Triggered event returns a string which has been transformed to avoid RichText issues, which I don’t think is intended since it’s not documented:

“The full, unfiltered text used to trigger the command that can be used to dissect parameters from the command message.”

Reproduction Steps & Actual behaviour

game.TextChatService.TextChatCommand.Triggered:Connect(function(TextSource, unfiltered)
	print(unfiltered)
end)

-- In chat:
-- :command hi <3 --> Prints ":command hi &lt;3"

Expected Behavior

-- In chat:
-- :command hi <3 --> Prints ":command hi <3"

Issue Area: Engine
Issue Type: Internal scripts
Impact: Low
Frequency: Constantly

image

4 Likes

Thanks for the report! We’ll follow up when there’s any update on the issue.

Thanks for catching this! Our team confirmed this is not the ideal behavior but unfortunately are not planning to work on this in the near term due to other priorities. For now, we advise you to workaround it by parsing the string, and we will update the documentation.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.