Exclude Header

Easily filter out unnecessary details from endpoint responses

We know Discord's API responses can sometimes be quite extensive. To simplify your results, our API includes an exclude parameter, allowing you to leave out any data you don't need for a cleaner and more concise response.

Not all endpoints support this feature. Refer to the documentation page of each endpoint to check its availability!

How to use:

  1. Header name: exclude

  2. Header value: object names to exclude from the result, separated by a comma

  • This basically tells the function to forget about that object and all of its nested objects

BDFD Example
$httpAddHeader[exclude;that]
 $httpGet[https://someExampleURL.idk]
$jsonParse[
 {
   "objects": {
     "that": {
       "are": ""
     },
     "separated":"",
     "by": "",
     "commas": ""
   }
 }
]

   Result โคต๏ธ 

 {
   "objects": {
     "separated":"",
     "by": "",
     "commas": ""
   }
 }
Discord.js Example
{
'headers': {
'exclude': 'names,separated,by,commas' 
    }
}

Last updated