Add API endpoint for server invite background
We want to rotate the image using community created art. Since we're not supposed to use the endpoints discord use inside the app then we need this exposed through the developer API. Thanks :)
-
This is in the api already, see the docs. The api Discord uses in-app is the same api, the only difference is the authorization. In the app, it uses your access token, in requests you make to the api on your own, you use your bot token with Bot added to the beginning.
Some endpoints are unusable by bots, or undocumented yes, but they still share the same api.
splash is the invite splash (invite background), ex the top of this screenshot.
when submitting it, you provide a base64 encoded image in the splash property of /guilds/:id
there are some online services to convert images to base64, and this stack exchange answer for node.js
1 -
@SoreGums yes, I am 100% sure it's the same thing, I literally tested it out with a direct request, setting it in Discord, and with a bot. The bot makes the same request your client makes, just with your bot token.
1 -
Nitro Boosting provides a way to get normally partnered/veified features without having either of those, they use the same methods.
1 -
ok great - thanks :)
1 -
hmm are you sure it's the same as the Nitro/Boost Custom Server Invite Background?
I can't really test it as I would need to buy multiple Nitros and am not feeling that generous :)0 -
Already possible.. if you use discord.py it’s `guild.splash`
0
Please sign in to leave a comment.
Comments
6 comments