# Exclude Header

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.

{% hint style="info" %}

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

{% endhint %}

## 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

<details>

<summary>BDFD Example</summary>

{% code lineNumbers="true" fullWidth="false" %}

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

   Result ⤵️ 

 {
   "objects": {
     "separated":"",
     "by": "",
     "commas": ""
   }
 }
```

{% endcode %}

</details>

<details>

<summary>Discord.js Example</summary>

<pre class="language-javascript" data-line-numbers><code class="lang-javascript">{
'headers': {
<strong>'exclude': 'names,separated,by,commas' 
</strong><strong>    }
</strong>}
</code></pre>

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dadocs.rickyjs.xyz/exclude-header.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
