How would I convert a URL into an attachment?

Hello there. So, I'll keep this short. I have a messageDelete event handler, and I have a problem. When a user sends a sticker and deletes it, obviously, I cannot reuse that sticker in my log message. That said, I thought that I could probably retrieve the sticker URL and use it as a file attachment instead. The main problem is that I have no idea how to do that. If someone could enlighten me on how I could achieve this, that would be amazing. Thank you for your help, it is truly appreciated.
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
property Sticker#url A link to the sticker (more...)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Batimius
BatimiusOP2y ago
That worked for me. Thank you for your help. I didn't try it, but thank you for your help regardless.
Want results from more Discord servers?
Add your server