Mention in Comments
Mentioning users in a comment is the ability to @mention yourself and other members a comment so the mentioned users will be promptly notified.

Create a comment with mention

When creating a comment with mention, you can provide the JsonObject for the metadata parameter. The metadata is a mention structure and that depends on your structure design of the content. However, we have a default solution to help you create the metadata.
If you want the person you mentioned to get promptly notified, you must provide the list of userId for the mentionUsers parameter.

Rendering Mentions

If you use the default solution class that we provide, you can get mentions from the AmityMentionMetadataGetter class. If you don't want to render banned users that get mentioned, you must check users in comment.getMentionees() since it will filter out banned users.
Last modified 4mo ago