-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allowed_mentions wiped on PATCH request #1864
Comments
The issue seems to be that if you patch a message without the |
Ok so this was supposed to be fixed but apparently not good to know also i'm using discord.net and they don't include any allowed mentions when modifying a message so it should never be reset. |
yeah it's a bug but in the meantime you can just include the current properties in the patch (which would probably be better for the library to handle) |
It seems that suppressing embeds on a message that contains a mention does ping in certain circumstances. We have managed to reproduce the ping with these steps:
In our testing pesron A was using OnePlus 8 Pro with Android 10 and Discord app version 40.8 (1277), and persons B and C were using the latest version of the Stable desktop client. In case that there's something with the message that causes this bug, here is the exact copy of the message we have tested it with:
We have tested this issue after it happened on our server and caused a sudden large influx of users which forced us to enable slowmode. If there's any other details I can provide that would help with reproduction please let me know. |
This looks to be working as intended. |
@night the issue is that if you don't pass |
I see. In the next API deploy we will stop reparsing content for mentions in PATCHes when it does not change |
When a
PATCH
request is performed to a message (that is making use ofallowed_mentions
),allowed_mentions
is wiped. This means that the mention border will appear to anyone mentioned implying they were mentioned.A simple way to reproduce this would be to:
allowed_mentions
, ensure that no one is to be mentionedThis can also be reproduced in the client by suppressing embeds as this involves making a
PATCH
request:allowed_mentions
, ensure that no one is to be mentionedUpon following the above steps for either method, you will find that the mention border has appeared!
Similarly, both the above methods can be reproduced via replies with the mention toggle set to off. Simply reply to yourself (or anyone else with the mention toggle set to off) and edit the message or suppress embeds on the message and reload the client - the mention border will appear.
I believe this can be fixed by Discord supplying which users or roles should not be mentioned via an
allowed_mentions
property in the message object or alike. This way, we can utilise this every time we need to perform aPATCH
request to ensureallowed_mentions
does not become wiped and retains which users or roles should not be mentioned.The text was updated successfully, but these errors were encountered: