after looking on the Discord.js docs i can find an answer for the question, does someone know how to do it? theres already a question the page but has no answers or comments.>
Besides the link I posted in the comments section, from looking at the Discord documentation, it appears the url is in the attachment object.
url
attachment