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