Commands

Get Commands

GET /bot/:id/commands

Path Parameters

NameTypeDescription

id*

string

It specifies which bot data you will withdraw.

{
  voted: true/false
}

Add Command

POST /bot/:id/commands

Path Parameters

NameTypeDescription

id

String

It specifies which bot data you will withdraw.

Headers

NameTypeDescription

Authorization*

String

Request Body

NameTypeDescription

name*

String

Name of command

description*

String

Description of command

syntax*

String

Usage of command

category

String

Category of command

{
    // Response
}

Edit Command

POST /bot/:id/commands

Path Parameters

NameTypeDescription

id

String

It specifies which bot data you will withdraw.

Headers

NameTypeDescription

Authorization*

String

Request Body

NameTypeDescription

id*

String

ID of command

category

String

Category of command

name*

String

Name of command

description*

String

Description of command

syntax*

String

Usage of command

{
    // Response
}

Delete Command

DELETE /bot/:id/commands/:commandId

Path Parameters

NameTypeDescription

id

String

It specifies which bot data you will withdraw.

commandId

String

Headers

NameTypeDescription

Authorization*

String

{
    // Response
}

Last updated