rbd.js

0.0.6 • Public • Published

rbd.js

An unofficial package used to interact with the Radar Bot Directory API


Developer

This package was originally made by Yoshiboi18303, but updated and edited by BritishDev


Example

const Discord = require("discord.js");
const Radar = require("rbd.js");
const client = new Discord.Client({
  intents: Object.values(Discord.Intents.FLAGS),
});
const radar = new Radar(client, "Your Radar Bot Directory Token");

client.on("ready", async () => {
  console.log("The client is ready!");
  console.log(await radar.stats(client.guilds.cache.size));
});

client.login("Your token goes here");

All available options

stats

<> = Required [] = Optional

radar.stats(<guild count>, [shards], [autopost = true/false])

botwidget

console.log(await radar.botWidget())

Note

This package could contain bugs. If you wish to report a bug, join https://discord.gg/dsk7J5CSV5 and ping @BritishDev#9085

Package Sidebar

Install

npm i rbd.js

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

6.32 kB

Total Files

5

Last publish

Collaborators

  • devenforcement