Add a mention/ping boolean to message_reference object #5869
Replies: 2 comments 5 replies
-
I think this is an interesting proposal but checking whether the referenced message's author was mentioned is the way the client chooses whether to render If you have automoderation to action mentions, the source of those mentions shouldn't be important (in the case of detecting mention spam) As text mentions are only valid in message content, you can easily just check the mentions on the reply message, the author ID of the referenced message & then check the reply message content for that user's mention with a regex pattern. That way you can consistently & sanely check if the reply has pinged the original author of the referenced message via a text mention or a reply mention. I think the dev effort on Discord's behalf for the marginal QoL improvements this would provide are not worth it. The additional field is also junk data most of the time and would add another optional field to the already bloated message object. |
Beta Was this translation helpful? Give feedback.
-
Closing this as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The proposal in this is to help bots being able to tell when an user is pinging someone through replies, while current behavior is simply checking the message's mention, this can lead to false positives, for that reason this proposal is that the message replies should return wether they are pinging or not, or at least have some way to be able to tell if the reply is mentioning or not, that way moderation bots can easily distinguish and helps to avoid/reduce notifications spam and thus this can helpful for moderation bots.
Beta Was this translation helpful? Give feedback.
All reactions