So I’m looking for a way to tell when TextService filtered a string of text. For example, if I say:
example:
Input: Bad Word
Filtered: ### ####
FilteredStatus: True
Input: Safe Text
Filtered: Safe Text
FilteredStatus: False
print("Status of Text: Filtered = "..FilteredStatus)
is there some kind of value in the text filter where it returns something like Filtered Text: True/false so that you can tell whether it had to filter the text or if it was already safe text? Or do I have to check for tags with string patterns etc?
Just do a string char match check for “#”. You will also need to check the original message to see if they purposely typed out hashtag chars. If there hashtag from original to new is different then there was something filtered
so checking the original message for a tag but then the current message also getting filtered might mark it as the text wasn’t filtered because it contained a tag in the original message
what? Thats why you would have a number variable for how many of that char was in the original message. Then you would compare to filtered message. Since if something was tagged then there would be more hashtags in the filtered string meaning it has has filtered a word/char in the new string
right but as @vellian said they could’ve put a tag in there on purpose. anyways I’m about to test out what vellian said to do I’m just finishing the rest of the code before I add the text part.