Bot Designer for Discord
Example usage of /client
endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpAddHeader[bot-token;<YOUR-BOT-TOKEN>]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/client]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /client
endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/client', {
headers: {
"apikey": "<YOUR-API-KEY>",
"bot-token": "<YOUR-BOT-TOKEN>"
}
}).then(res=>res.data)
})()
Possible Responses (Codes)
Code 200
API succeeded and details were fetched.
{
status: 200,
details: {
id: '1064100501764968488',
name: 'BDFDData',
icon: 'https://cdn.discordapp.com/app-icons/935552538135117844/d1f71e02a626e73dcf73ceaf3775b03c.jpg',
description: '',
summary: ''
...
...
...
> 'Read on `Application Objects` : https://discord.com/developers/docs/resources/application'
}
Code 400
An error occurred that stopped execution.
{
status: 400
error: 'Cannot read ... (This can vary)'
}
Code 401
Invalid bot token was provided.
{
status: 401,
details: { message: '401: Unauthorized', code: 0 }
}