Commands and categories

Fetch commands and categories to make tables such as these on the command page.

Example : Commands page

get
Commands

https://api.yeahbot.net/commands
This endpoint returns every commands and their metadata.
Request
Response
200: OK
{
"code": 200,
"message": "OK",
"content": [
{
"aliases": [],
"discordPermission": {
"en": "None",
"fr": "Aucune"
},
"usage": {
"en": "`!help [Command|Alias]`",
"fr": "`!help [Commande|Alias]`"
},
"name": "help",
"description": {
"en": "Get help and the list of commands.",
"fr": "Obtenir de l'aide et la liste des commandes."
},
"arguments": {
"en": [
"[Command|Alias]"
],
"fr": [
"[Commande|Alias]"
]
},
"permission": {
"en": "Everyone",
"fr": "Tout le monde"
},
"disabled": false,
"argumentsDescription": {
"en": [
"Command or alias of a command on which to get help."
],
"fr": [
"Commande ou alias d'une commande sur laquelle obtenir de l'aide."
]
},
"category": {
"en": "Miscelleanous",
"raw": "MISCELLANEOUS",
"fr": "Divers"
}
},
...
]
}

get
Specific command

https://api.yeahbot.net/commands/:name
This returns metadata of the given command.
Request
Response
Path Parameters
Command name
required
string
Name of the command.
200: OK
Command found.
{
"code": 200,
"message": "OK",
"content": {
"aliases": [],
"discordPermission": {...},
"usage": {...},
"name": "help",
"description": {...},
"arguments": {...},
"permission": {...},
"disabled": false,
"argumentsDescription": {...},
"category": {...}
}
}
404: Not Found
Command not found.
{
"code": 404,
"message": "Not found",
"error": "unknown_command"
}

get
Categories

https://api.yeahbot.net/categories
This endpoint returns every command categories.
Request
Response
200: OK
{
"code": 200,
"message": "OK",
"content": [
"MUSIC",
"UTIL",
"MODERATION",
"FUN",
"MISCELLANEOUS"
]
}