What do you want to achieve? I want to know if the following would be allowed with text filtering rules:
I have a system in-game where users can report bugs and can add YouTube video links (if their policy info says they can) showing the problem. These happen through datastores on different servers (AKA I’m not in game).
What is the issue? I would use :GetNonChatStringForBroadcastAsync() however this filters out the link due to it being really heavy on restrictions. And for :GetNonChatStringForUserAsync() well that requires me to be in the server.
What solutions have you tried so far?
I am using this code when the user sends a report:
local filteredTextResult
local success, errorMessage = pcall(function()
filteredTextResult = TextService:FilterStringAsync(text, player.UserId)
end)
if not success then
return false
else
return filteredTextResult:GetNonChatStringForUserAsync(player.UserId)
end
And the following when me (the owner) looks at the report: local FilteredText = game:GetService("TextService"):FilterStringAsync(Name, OwnerId):GetNonChatStringForUserAsync(OwnerId)
I’m just wondering if this is with-in Roblox’s terms or if there is something else I can do.
if you are using something like discord to handle these you shouldnt really worry about filtering that much because no one else is gonna see it. you cant get in trouble for making something unfiltered on something that isnt roblox
Thanks however the problem isn’t me being scared about the messages not being YouTube URLs it’s that Roblox takes down games that don’t filter user’s content appropriately.
Broadcast is meant for, as the method’s name implies, a string intended for widespread display. If you are making a report system then you shouldn’t be using broadcast. Store the raw string when you need to parse it and when it comes to needing to view it, use GetNonChatStringForUserAsync with the viewing player (in this case, yourself) before displaying the text.
Yes, however I am the only one who can see the links plus YouTube has their own report system which is why Roblox allows YouTube links in the first place.