Documentation of the API.
Prefix requests with /v1
All requests require a Authorisation
header.
NOT IMPLEMENTED
Get a list of guilds the user is currently in and has permission to manage. Cached for 1 minute.
[
{
"name": "",
"id": "",
"roles": [{ "name": "", "id": "", "color": "", "permissions": "" }],
"icon": ""
}
]
Get a guild information. Cached for 1 minute.
{
"name": "",
"id": "",
"channels": [{ "name": "", "id": "", "type": 0 }],
"roles": [{ "name": "", "id": "", "color": "", "permissions": "" }],
"icon": ""
}
Guild ID was not found (bot not there).
{ "error": "Guild not found" }
Get a guilds settings. All fields are nullable.
{
"modlog_channel": "",
"greeting": {
"enabled": true,
"message": "",
"channelID": ""
},
"farewell": {
"enabled": true,
"message": "",
"channelID": ""
}
}
User doesn't have permission to view settings.
{ "error": "Unauthorised" }
Sets a guilds settings. No body fields are required.
{
"modlog_channel": "",
"greeting": {
"enabled": true,
"message": "",
"channelID": ""
},
"farewell": {
"enabled": true,
"message": "",
"channelID": ""
}
}
{
"success": true
}
User doesn't have permission to set settings.
{ "error": "Unauthorised" }
NOT IMPLEMENTED
[
{
"name": "",
"creator": "",
"message": ""
}
]
NOT IMPLEMENTED
Create a new custom command.
{
message: String,
name: String
}
{ "success": true }
Command name is the same as a core command.
{ "error": "Core command already exists" }
Command name is the same as a pre-existing custom command.
{ "error": "Custom command already exists" }