Skip to content

Commit

Permalink
Merge pull request #103 from Mirasaki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mirasaki authored Feb 24, 2023
2 parents 61c613c + c0411d4 commit e98201f
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Come try the template yourself in our official [support server](https://discord.
<h2 id="documentation">Documentation</h2>

- The client (bot) code is documented at [djs.mirasaki.dev](https://djs.mirasaki.dev "Client Documentation")
- The API is documented at [djs.mirasaki.dev/api-docs](https://djs.mirasaki.dev/api-docs "Backend/API Documentation")
- The API is documented at [djs.mirasaki.dev/api-docs](https://djs.mirasaki.dev/tutorial-api-docs "Backend/API Documentation")
- Source code is well documented with comments, explaining what's going on
- With the use of JSDoc for client documentation, enjoy code-completion (IntelliSense) in your favorite code editor

Expand Down
2 changes: 1 addition & 1 deletion jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"id":"repository"
},
"API Documentation": {
"href": "/api-docs",
"href": "/tutorial-api-docs",
"class": "menu-item",
"id": "api-documentation"
},
Expand Down
97 changes: 97 additions & 0 deletions tutorials/api-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Commands

## URL Query Parameters

The following URL Query parameter apply to all subsequent command routes **without a /:name parameter**

```json
{
"category": "The category to filter by",
"limit": "The maximum amount of commands to return"
}

```

## Chat Input Commands

GET all application Chat Input commands

**URL** : `/api/commands`

**Find by name** : `/api/commands/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Chat Input commands with your specified command structure

## Context Menu Commands

GET all application Context Menu Commands

**URL** : `/api/commands/context-menus`

**Find by name** : `/api/commands/context-menus/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Context Menu Commands with your specified command structure

## Auto-complete options

GET all application Auto-complete options

**URL** : `/api/commands/auto-complete`

**Find by name** : `/api/commands/auto-complete/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Auto-complete options with your specified command structure

## Button Actions

GET all application Button Actions

**URL** : `/api/commands/buttons`

**Find by name** : `/api/commands/buttons/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Button Actions with your specified command structure

## Modal Prompts

GET all application Modal Prompts

**URL** : `/api/commands/modals`

**Find by name** : `/api/commands/modals/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Modal Prompts with your specified command structure

## Select Menu's

GET all application Select Menu's

**URL** : `/api/commands/select-menus`

**Find by name** : `/api/commands/select-menus/:name`

**Method** : `GET`

**Response Code** : `200 OK`

**Response Content** : Returns an array of client Select Menu's with your specified command structure

0 comments on commit e98201f

Please sign in to comment.