JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Add x-super-properties header

Open MinnDevelopment opened this issue 2 years ago • 3 comments

Pull Request Etiquette

Changes

  • [x] Internal code
  • [ ] Library interface (affecting end-user code)
  • [ ] Documentation
  • [ ] Other: _____

Closes Issue: NaN

Description

This adds support for the X-Super-Properties header in JDA. This header is required to use certain features in the API that discord forgot about.

MinnDevelopment avatar Nov 18 '23 12:11 MinnDevelopment

This is required for #2532

MinnDevelopment avatar Nov 18 '23 12:11 MinnDevelopment

It would be ideal if this were configurable to some degree -- newer features will be gated to later minimum app versions.

RedDaedalus avatar Nov 18 '23 20:11 RedDaedalus

It would be ideal if this were configurable to some degree -- newer features will be gated to later minimum app versions.

Headers can already be customized with setRestConfig by setting a custom builder.

MinnDevelopment avatar Nov 18 '23 20:11 MinnDevelopment