# Commands List

You can now send the list of slash commands that your bot supports to discordbotlist.com - In the same format as the Discord API standard. These will be shown on your bot page

### Example Command Body

```json
[
  {
    "name": "ping",
    "description": "Pong!",
    "type": 1
  }
]
```

## POST Commands

<mark style="color:green;">`POST`</mark> `https://discordbotlist.com/api/v1/bots/:id/commands`

JSON Body, exact same as sent to discord. For Example

#### Path Parameters

| Name                                  | Type      | Description |
| ------------------------------------- | --------- | ----------- |
| :id<mark style="color:red;">\*</mark> | Snowflake | Bot ID      |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bot \<discordbotlist.com token> |

#### Request Body

| Name                                  | Type  | Description       |
| ------------------------------------- | ----- | ----------------- |
| \[]<mark style="color:red;">\*</mark> | Array | Array of commands |

{% tabs %}
{% tab title="200: OK Success!" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


---

# 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://docs.discordbotlist.com/commands-list.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.
