Get the embed of a link

Is it possible to get the embed of a link like below?
4 Replies
Jaworek
Jaworek2y ago
message.embeds ?
d.js docs
d.js docs2y ago
property Message#embeds A list of embeds in the message - e.g. YouTube Player
grook
grook2y ago
It appears as an empty array. nvm weird sometimes its empty sometimes it isn't anyways thank you
probablyraging
Noticed this as well. Delay before checking the message for an embed. Sometimes embeds can take a second to be added to a message. Also, if I'm not wrong, when an embed is added to a message it fires the messageUpdate event as well, so you could check that event for messages with an embed