.setAvatar() Help

I made a Bot Dashboard to manage my bot's settings. One of the settings is the bot's avatar. When I call client.user.setAvatar(base64_img_url), it doesn't set the Avatar.
6 Replies
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
π•―π–”π–‰π–”π•Ύπ–Šπ–†π–‘
No That’s the one I’m changing it from @tiπŸ…±πŸ†ŽπŸ…° is not Souji the docs said the .setAvatar takes base 64 urls Is that true Cause that’s how I’m setting it. The dashboard gets an uploaded image and turns it into a data url
π•―π–”π–‰π–”π•Ύπ–Šπ–†π–‘
It should but doesn’t So it works if I run the code in the ready event I found that it wasnt sending the data to my server because the image url was too big
Want results from more Discord servers?
Add your server