Add API endpoint for server invite background

Commentaires

6 commentaires

  • Donovan_DMC

    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

    request body

    request headers

    audit log entry

    there are some online services to convert images to base64, and this stack exchange answer for node.js

     

    1
    Actions pour les commentaires Permalien
  • SoreGums

    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
    Actions pour les commentaires Permalien
  • Soheab_🎃

    Already possible.. if you use discord.py it’s `guild.splash`

    0
    Actions pour les commentaires Permalien
  • Donovan_DMC

    @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
    Actions pour les commentaires Permalien
  • Donovan_DMC

    Nitro Boosting provides a way to get normally partnered/veified features without having either of those, they use the same methods.

    1
    Actions pour les commentaires Permalien
  • SoreGums

    ok great - thanks :)

    1
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.