Radarcord-js

The best way to interact with the Radarcord API!

Features

  • Easy to use

  • Supports discord.js and will support eris soon.

  • Supports TypeScript

  • May come with Webhook support soon.

Installation

npm install @yoshiboi18303/radarcord-js

Basic discord.js Usage

const Discord = require("discord.js");
const { Client: Radar } = require("@yoshiboi18303/radarcord-js");

const client = new Discord.Client({
    intents: new Discord.IntentsBitField(["Guilds"]),
});
const radar = new Radar(client, "myradarcordauthtoken"); // Make sure to replace myradarcordauthtoken with your actual Radarcord auth token.

client.on("ready", async () => {
    console.log("The client is ready!")
    await radar.postStats(); // Send a stats post to the Radarcord API.
});

client.login("YOUR_TOKEN_HERE"); // Make sure to replace YOUR_TOKEN_HERE with your Discord bot's token.

Basic eris Usage

These next methods are the same for discord.js and eris if you're using eris, use the class in the Basic Eris Usage section.

Autoposting Usage

Basic Callback Usage

Last updated