0.0.6 • Published 2 years ago

rbd.js v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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