components v2 embed
Hey guys, I found an issue with the components v2 embed whenever there’s a role mention or a user mention, it actually triggers a notification, unlike the old embed system.
I did some research but couldn’t find any option to enable or disable these notifications.
What’s the solution for this?
14 Replies
Use allowedMentions to control either the types of mentions allowed, or specific mentions by id allowed
You can control which entities receive notifications via the
allowedMentions option. You can:
- Set a default on the client
- Set for a specific message
- Use the repliedUser key to disable in-line reply mentions
you already got answered: https://discord.com/channels/222078108977594368/824411059443204127/1430087063700770856
That does work, but the problem is it disables all mentions globally, including normal messages, not just the embeds.
I only want to prevent mentions from triggering notifications inside the v2 embed, without affecting regular messages.
You can specify which mentions to ping
Wdym actually?
You should be specifying allowedMentions when you send the message/reply
Can it be enabled or disabled in a specific message only?
If yes, can u send an example of the method?
Yea. That’s the only way I recommend doing it
channel.send({ allowedMentions: {…} })thx bro
I think what he meant to say is with allowedMentions, you'd forbid or allow mentions throughout the entirety of the message (including in a TextDisplay component and a Container component). However, OP wants to allow a mention in the TextDisplay component part and not the Container component part.

To my knowledge, I don't think that's possible?
Only solution would be to send two messages in quick succession where one has the allowedMentions parameter and the other doesn't.
they were already answered, so no, that wasn't what they were looking for
The issue has been marked as solved by support staff