You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
For non-pinging mentions such as mentions in embeds and mentions suppressed with allowed_mentions, they are rendered properly when the user is cached, but otherwise the client just shows the <@id> format or @invalid-user. This is because non-pinging mentions do not include the user data in the mentions array for the message. On the Android app, it seems to always show @invalid-user for mentions suppressed with allowed_mentions, not even attempting to resolve from cache.
Why This is Needed
While allowed_mentions is an official feature, this often breaks mention rendering, which is a major issue if you want to intentionally send non-pinging mentions to see the user's data/profile.
Possible Solutions
If possible without causing pings, include the user data in the mentions array for non-pinging mentions
Add a new message property such as other_mentions with data for non-pinging mentions, and use those in rendering
The text was updated successfully, but these errors were encountered:
advaith1
changed the title
Include user data in mentions for non-pinging mentions
Include user data in message data for non-pinging mentions
Oct 4, 2020
We have no current plans to extend the message object to include non-mentioned users. While we display in the markdown a user as a mention, we do not parse and store these ignored mentions.
Description
For non-pinging mentions such as mentions in embeds and mentions suppressed with
allowed_mentions
, they are rendered properly when the user is cached, but otherwise the client just shows the<@id>
format or@invalid-user
. This is because non-pinging mentions do not include the user data in thementions
array for the message. On the Android app, it seems to always show@invalid-user
for mentions suppressed withallowed_mentions
, not even attempting to resolve from cache.Why This is Needed
While
allowed_mentions
is an official feature, this often breaks mention rendering, which is a major issue if you want to intentionally send non-pinging mentions to see the user's data/profile.Possible Solutions
mentions
array for non-pinging mentionsother_mentions
with data for non-pinging mentions, and use those in renderingThe text was updated successfully, but these errors were encountered: