How can I get the embed of a message to a variable with the ID of the message in discord.py?
I get the message with uzenet = await client.get_message(channel, id), but I don't know how to get it's embed.
To get the first Embed of your message, as you said that would be a dict():
embedFromMessage = uzenet.embeds[0]
To transfer the dict() into an discord.Embed object:
embed = discord.Embed.from_data(embedFromMessage)
1
votes
You can get a list of Embed objects with uzenet.embeds
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more