Radarcord-js
The best way to interact with the Radarcord API!
Features
Easy to use
Supports
discord.jsand will supporterissoon.Supports TypeScript
May come with Webhook support soon.
Installation
npm install @yoshiboi18303/radarcord-jsyarn add @yoshiboi18303/radarcord-jspnpm add @yoshiboi18303/radarcord-jsBasic discord.js Usage
discord.js Usageconst 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.import Discord from "discord.js";
import { Client as Radar } from "@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
eris UsageThis usage also works for classes that extend the Eris.Client class (e.g. Eris.CommandClient) so don't worry about having to rewrite your whole codebase!
Autoposting Usage
Basic Callback Usage
Last updated