Bot Designer for Discord
Example usage of /guild/emojis
endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpAddHeader[bot-token;<YOUR-BOT-TOKEN>]
$httpAddHeader[guild-id;1064098700307218463]
$httpAddHeader[emoji;1064859897956663336] $c[Optional header]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/guild/emojis]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /guild/emojis
endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/guild/emojis', {
headers: {
"apikey": "<YOUR-API-KEY>",
"bot-token": "<YOUR-BOT-TOKEN>",
"guild-id": "1064098700307218463",
"emoji": "1064859897956663336" // Optional header
}
}).then(res=>res.data)
})()
Possible Responses (Codes)
Code 200 (Simple Not Used)
API succeeded and details were fetched.
{
status: 200,
details: [
{
name: 'BDFDdata',
roles: [],
id: '1064105162295230574',
require_colons: true,
managed: false,
animated: false,
available: true,
user: {
id: '616258826466754570',
username: 'Ugly cousin',
avatar: 'https://cdn.discordapp.com/avatars/616258826466754570/c6e0fa63177c4894c70784c0b43c5179.jpg',
avatar_decoration: null,
discriminator: '7902',
public_flags: [ 'VerifiedBot' ],
bot: true
}
}
]
}
Code 200 (Simple Used)
API succeeded and details were fetched.
{
status: 200,
details: {
"emojis": {
"<:BDFDdata:1064105162295230574>": {
"name": "BDFDdata",
"id": "1064105162295230574",
"animated": false
},
"<a:cocky:1064859897956663336>": {
"name": "cocky",
"id": "1064859897956663336",
"animated": true
},
"<a:updates:1071058187916161104>": {
"name": "updates",
"id": "1071058187916161104",
"animated": true
},
...
},
"count": 30
}
}
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 }
}
Code 404
Guild was not found via DAPI
{
status: 404,
details: { message: 'Unknown Guild', code: 10004 } (this can vary)
}