vCodes
  • API Reference
  • RESOURCES
    • Bots
    • Bot
      • Vote
      • Commands
      • Announcements
  • LIBRARIES
    • Javascript
Powered by GitBook
On this page
  • Get Commands
  • Add Command
  • Edit Command
  • Delete Command

Was this helpful?

Export as PDF
  1. RESOURCES
  2. Bot

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
}
{
    // 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
}
{
    // 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
}
PreviousVoteNextAnnouncements

Last updated 2 years ago

Was this helpful?