How to detect if the message sent is blocked

How to detect if a message sent from the client sdk is blocked due to blocklist / allowlist or image moderation.

Hi @martin, thank you for your enquiry and sorry for the late reply.
If a user sent a blocked word, an error will pop out indicating that they have sent a blocked word so the action will fail. Same goes to a URL that is not on the white list.

Hi @amitysupport - thank you for the reply - what if I’m using SDK - how do I know whether the message sent is blocked? Any error callback / error code detail?

@martin

Thanks for the question. If there is a blocked word in the message, the error BAN_WORD_FOUND will be returned, you can find the full list here: Error Handling - Amity Docs