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:
  • Endpoint Body Parameters
  • Examples:
  • Possible Responses (Codes)
  1. Endpoints

/encode

This endpoint will require a POST request.

Endpoint Headers:

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

Endpoint Body Parameters

  • text - Text to encode [String OR Array of Strings] (Required)

Examples:

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

Bot Designer for Discord

Example usage of /encode endpoint using BDFD

$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/encode;{
text: 'test'
}]


$httpResult OR $httpResult[details]
Discord.js

Example usage of /encode endpoint using Discord.js

const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/encode', 
{  text: 'test'
}, { 
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200

API succeeded and details were fetched.

{
 status: 200,
  details: 'l%0a7o7I%ll%0a22o22U%ll%0a8o8U%ll%0a7o7I%l'
}}
Code 400

An error occurred that stopped execution.

{
    status: 400
    error: 'Cannot read ...  (This can vary)'
}
Previous/emoji-infoNext/font

Last updated 1 year ago

🔗