2021年5月7日星期五

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

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

https://stackoverflow.com/questions/67443985/cant-read-embeds-from-discord-message-using-discord-py May 08, 2021 at 12:06PM

没有评论:

发表评论