Retrieves information of the client (bot) user
Last updated 3 months ago
This endpoint supports the header
bot-token - Token of the Bot [String] (Required)
apikey - Your Api Auth Key [String] (Required)
Data API version required. Must replace <version> with either release or beta.
<version>
Example usage of /client endpoint using BDFD
/client
$httpAddHeader[apikey;<YOUR-API-KEY>] $httpAddHeader[bot-token;<YOUR-BOT-TOKEN>] $httpGet[https://bdfddata.rickyjs.xyz/<version>/client] $httpResult OR $httpResult[details]
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) })()
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' }
An error occurred that stopped execution.
{ status: 400 error: 'Cannot read ... (This can vary)' }
Invalid bot token was provided.
{ status: 401, details: { message: '401: Unauthorized', code: 0 } }