1
votes

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.

2

2 Answers

3
votes

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