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

/set

Modify the current Application/User (Previously /setbot)

Previous/emojisNext/decode

Last updated 9 days ago

This endpoint will require a POST request.

This endpoint is locked to Alpha testers for bug fixing.

Please report any & all bugs to the

This endpoint supports the header

Endpoint Headers:

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

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

Endpoint Body Parameters

  • obj - Object of modifications (See Discord Docs | ) [Object] (Required)

  • type - What to modify (User or App) [String] (Required)

Examples:

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

Bot Designer for Discord

Example usage of /client/set endpoint using BDFD

$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/client/set;{
'obj': {
'username': 'CoolBot1'
},
'type': 'user'
}]


$httpResult OR $httpResult[details]
Discord.js

Example usage of /client/set endpoint using Discord.js

const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/client/set', {
'obj': {
'username': 'CoolBot1'
},
'type': 'user'
},
{ 
headers: {
'apikey': '<YOUR-API-KEY>'
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

{
  status: 200,
  details: {
   "id": "1064100501764968488",
        "username": "BDFDData",
        "avatar": "9d119ef13aa1a6162543a0de7cc96af2",
        "discriminator": "6039",
        "public_flags": 65536,
        "flags": 65536,
        "bot": true,
        "banner": null,
        "accent_color": null,
        "avatar_decoration_data": null,
        "collectibles": null,
        "banner_color": null,
        "clan": null,
        "mfa_enabled": true,
        "locale": "en-US",
        "premium_type": 0,
        "verified": true
    },  }
}
Code 400

An error occurred that stopped execution.

{
    status: 400
    error: 'Cannot read ...  (This can vary)'
}
Code 404

Invalid bot token was provided.{

  status: 404,
  error: 'User cannot be found'
}
🔗
Support Server
Exclude
User
Application