Filter chat before broadcasting, or when received?

Sorry if this is the wrong area to post in, still trying to figure the dev forum out.
Trying to stay within the terms of service of roblox, just need to know if I should filter a chat message before it’s broadcasted over the MessagingService, Or when it’s been received.

1 Like

As long as no user can view the unfiltered text, it’s unlikely that they’ll enforce censoring it while it’s just being stored internally. You don’t really need to censor it until a user can see it.

Edit: https://developer.roblox.com/articles/Text-and-Chat-Filtering#when-to-filter-text says “displayed text”

2 Likes

I don’t think it makes much difference when the message is filtered as long as you filter it on the server before the player can view the message.

edit: I would filter it before you send it for the same reason as below.

2 Likes

In my opinion you should filter it before broadcasting it, since if you do otherwise and send it to i.e. 10 servers, then you will filter the same message 10 times in 10 different servers. Not like it really matters tho.

3 Likes

Roblox has a lovely guide on when to filter messages in the developer hub @ https://developer.roblox.com/articles/Text-and-Chat-Filtering

5 Likes