Add mentions, channel_mentions and role_mentions to Embed #7076
-
I'd like to create a PR that adds easy access to mentions inside Any thoughts about this? |
Beta Was this translation helpful? Give feedback.
Answered by
redgoldlace
Jun 17, 2021
Replies: 1 comment
-
I'm fairly sure this has been discussed in discord.py's discord server previously. It's subject to a couple issues:
I'm not sure if an implementation that doesn't suffer from these issues is really possible, which is why it hasn't happened yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexisig
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm fairly sure this has been discussed in discord.py's discord server previously. It's subject to a couple issues:
Message.mentions
(and I believeMessage.role_mentions
too) are provided by the API. The library doesn't handle these itself.Message
all represent mentions that have actually happened - i.e, if you send a message with a mention and setallowed_mentions
asAllowedMentions.none()
, I'm fairly sure the correspondingMessage
object will have nothing in itsmentions
attribute. Introducing something like this for embeds when no actual mentions have happened would go against the existing behaviour of the API and serves as an easy …