#Hello, i am changing my bots profile picture in code, but after changing it, it wont change on the s

1 messages · Page 1 of 1 (latest)

brittle wasp
#

Real client, not bot's client, so it makes sense to not work for others too

#

As example, when you're opening Discord in browser, or inside the desktop app, a client is made, similar to how a bot works

#

That clients holds cache of images

teal trout
#

hmm okay, theres probably no way to "fixing" that except for waiting until discord is updating their client right?

brittle wasp
#

If that's the actual problem, which is likely, then yes, you have nothing to fix. Discord won't likely update their client to support this. Though, after some time, without restarting Discord app, the image should be updated

teal trout
#

yea it does when restarting

#

i've tried to have a second command with a timeout 8 minutes later that takes the URL of the actual avatar and change it to the same again but doesnt seem to work yet

#

oh wait nvm it worked

#

xD

brittle wasp
teal trout
#

yea true its just the cache

brittle wasp
#

You will find this kind of problem for other operations too: like updating a channel, and not seeing it updated in the app

teal trout
#

wym with updating a channel?

#

can you give me an example?

brittle wasp
#

It can be anything that involves caching. Let's say your bot deletes a channel: it might not appear deleted in the app, but you can't access it either. If you restard Discord, then it's gone

teal trout
#

ahh

brittle wasp
#

I'm not sure if all these problems are related to Discord.js, but I got no insight from devs. I tell you so you don't go through the same pain. Is not your code the problem

teal trout
#

yea i thought about that instantly that it would be a problem with discord instead of .js but apparently you can fix it by double changing