detect embed generation

how do you detect when a message has its embed generated? like when you post a link to a website and the embed takes a while to load. I want my bot to verify that the embed links it generates embed correctly because sometimes they dont
5 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
suspense
suspense14mo ago
the message update event fires shortly after the message creation
PixelBlob
PixelBlobOP14mo ago
that event does not wait for an embed to load though correct? because how does the discord client get the message before the embed? I want an event that triggers on embed load could check how the client does it but I wouldn't know how to add that onto discord.js I'm assuming it's a websocket message
souji
souji14mo ago
messageCreate: message without embed messageUpdate: embed gets edited in not sure what else to say, that suspense didn't already
PixelBlob
PixelBlobOP14mo ago
ahhh ok that's perfect thank you sorry mistook what he said for the message create event should have read it twice
Want results from more Discord servers?
Add your server