Skip to content

polish-penguin-dev/Singularity

Repository files navigation

Singularity

version downloads docs publish

The simplest, cleanest Discord API wrapper written in node.

Singularity is super lightweight, with batteries included. Give it a try!

Examples:

Ping/Pong!

const Client = require("singularity-discord");
const client = new Client({ token: process.env.token, intents: 33281 });

client.on("MESSAGE_CREATE", async (msg) => {
  if (msg.content === "ping") {
    client.messages.send(msg.channel_id, "pong!");
  }
});

client.login();

Check out the wiki to learn more!