using rest API to update server banner
I'm trying to use the REST api to update my server banner.
The problem is that it seems to work - the await rest.patch() line does not throw an error, and it returns the guild object (which I believe it so be expected upon success).
But when I look at my server, the banner is unchanged. I thought it might be cached, but I did a hard refresh on the website, and also waiting 12 hours.
What am I doing wrong?
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP"@discordjs/rest": "^2.0.1",
"discord-api-types": "^0.37.61",
"discord.js": "^14.13.0",
you need to use body, not data
oh, thanks me, that was pretty obvious
yeah, someone should have been able to see that easily