dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
680 stars 161 forks source link

message.embeds returns empty list #457

Closed JSac1 closed 1 year ago

JSac1 commented 1 year ago

Summary

message.embeds returns a empty list on on_message event even though there is an embed sent

Reproduction Steps

Code

async def on_message(self, message: discord.Message):
        print(minify(message))
        print(message.embeds)

Expected Results

Returns a list of embeds that a message contains

Actual Results

always returning an empty list

System Information

Checklist

Additional Information

No response

Iinksafe commented 1 year ago

What does the minify() function do?

dolfies commented 1 year ago

Are you sure the message initially has messages and they aren't edited in afterwards? Link embeds have this behavior, as they usually aren't unfurled yet at message send. Either way, I can't reproduce this.