BDFDiscordData
  • â„šī¸Introduction
  • 👨‍đŸ’ģ[NEW] BDFD x Discord.js Eval
  • 🔏Your Privacy
  • Exclude Header
  • đŸĨĩSupport Server
  • 🔗Endpoints
    • /advanced
    • /db
      • /append
      • /delete
      • /deleteAll
      • /get
      • /getAll
      • /set
    • /client
    • /decode
    • /emoji-info
    • /encode
    • /font
    • /foreach
    • /guild
      • /bans
      • /channels
      • /emojis
      • /emoji-delete
      • /event
        • /create
        • /delete
        • /users
        • /modify
      • /invite
      • /members
      • /prune
      • /roles
      • /slash
      • /stickers
    • /jsonkey
    • /map
    • /messages
    • /reaction
      • /add
      • /delete
    • /repeat
    • /setbot
    • /slash
    • /user
Powered by GitBook
On this page
  • Endpoint Headers:
  • Examples:
  • Possible Responses (Codes)
  1. Endpoints

/client

Retrieves information of the client (bot) user

Previous/setNext/decode

Last updated 4 months ago

This endpoint supports the header

Endpoint Headers:

  • bot-token - Token of the Bot [String] (Required)

  • apikey - Your Api Auth Key [String] (Required)

Examples:

Data API version required. Must replace <version> with either release or beta.

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 }
}
🔗
Exclude