Can’t read embeds from discord message using discord.py

  discord.py, python

I am trying to read an embedded message but every time I try I try to print message.embeds I get an empty list.

Here’s the function I am using. It used to work before but now it only prints []

bot = commands.Bot(command_prefix='!')

channels = {CHANNEL_ID}

@bot.event
async def on_message(message):
    if message.channel.id in channels:
        embeds = message.embeds  # return list of embeds
        print(embeds)

The embedded messages and what’s being printed

Source: Python Questions

LEAVE A COMMENT