Socket
Socket
Sign inDemoInstall

rdl.js

Package Overview
Dependencies
77
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rdl.js

The official SDK/API Wrapper for Rovel Discord List


Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Rovel Discord List SDK for Node.js - RDL.js

Using sdk for your discord bots has never been easier! 👀


Using with Discord.js

const { Client: DiscordClient } = require("discord.js");
const { Client: RDLClient } = require("rdl.js")

const client = new DiscordClient();
const RDL = new RDLClient();

client.once("ready", () => {
    console.log("Discord client is ready!");
});

// Event emitted after login is successful.
RDL.once("ready", () => {
    // Bot data will be available from RDL.bot
    console.log(`RDL Logged in as ${RDL.bot.tag}`);
})

// Example - post server stats when bot joins a guild
client.on("guildCreate", (guild) => {
    RDL.bot.postServers(client.guilds.cache.size);
});

// Example - webhook server using express
let express = require("express");
let app = express();
app.use("/api", RDL.webhooks());

client.login("Your Discord Bot Token");
RDL.login("Your RDL bot token")
    .catch(e => console.error("Error Occurred! " + e));

Keywords

FAQs

Last updated on 08 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc