Commands
Get Commands
GET /bot/:id/commands
Path Parameters
Name
Type
Description
id*
string
It specifies which bot data you will withdraw.
{
voted: true/false
}{
"error": "You entered an invalid bot token."
}{
// Response
}Add Command
POST /bot/:id/commands
Path Parameters
Name
Type
Description
id
String
It specifies which bot data you will withdraw.
Headers
Name
Type
Description
Authorization*
String
Request Body
Name
Type
Description
name*
String
Name of command
description*
String
Description of command
syntax*
String
Usage of command
category
String
Category of command
{
// Response
}{
// Response
}{
// Response
}{
// Response
}Edit Command
POST /bot/:id/commands
Path Parameters
Name
Type
Description
id
String
It specifies which bot data you will withdraw.
Headers
Name
Type
Description
Authorization*
String
Request Body
Name
Type
Description
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
}{
// Response
}{
// Response
}{
// Response
}Delete Command
DELETE /bot/:id/commands/:commandId
Path Parameters
Name
Type
Description
id
String
It specifies which bot data you will withdraw.
commandId
String
Headers
Name
Type
Description
Authorization*
String
{
// Response
}{
// Response
}{
// Response
}{
// Response
}Last updated
Was this helpful?