reupload image

in message embed how do i just reupload image to discord cdn instead of using original url
6 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Creeper
CreeperOP3y ago
also what is better to do since the original cdn url might be slow
souji
souji3y ago
you probably shouldn't. if you re-upload things as your bot you are now responsible for the content. additionally you persisted whatever it was, without the user that originally posted it to be able to remove it. worst case you are re-distributing illegal material even for mod logs it's generally recommended to use the original attachment url, instead of re-uploading content
Creeper
CreeperOP3y ago
ig u could say that but its an api that allows u to get images that r from a game so technically the 3rd party api is already coping from the game
d.js docs
d.js docs3y ago
guide Popular Topics: Attaching images - Using the EmbedBuilder read moreguide Popular Topics: Attaching images - Using an embed object read more
souji
souji3y ago
you'd need to send it as attachment alongside the embed and reference it as detailed above
Want results from more Discord servers?
Add your server