discordjs / discord.js-modules

Modularisation of discord.js (WIP)
Apache License 2.0
192 stars 30 forks source link

feat(RequestManager): allow multiple body content-types #92

Closed jpbberry closed 2 years ago

jpbberry commented 2 years ago

Please describe the changes this PR makes and why it should be merged:

This will allow developers to provide bodies with different Content-Type's to the API

The main issue occurring was the need to use Content-Type: application/x-www-form-urlencoded when requesting /oauth2/token. This will be fixing #90

This also allows for the ability to give custom FormData instances rather than being stuck to attachments, which isn't as useful but just less restricting.

Status and versioning classification: