Nearly Perfect Mediocracy

    discord-starboard
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.2 • Public • Published

    Discord Starboard


    Easy to use discord.js starboard package for your bot! Uses discord.js v13.

    Getting Started

    Installation

    npm install discord-starboard

    Usage

    NOTE: Partial are required!

    const { StarboardClient } = require("discord-starboard");
    const Discord = require("discord.js");
    const client = new Discord.Client({
      intents: 32767,
      partials: ["MESSAGE", "REACTION"],
    });
    
    client.on("ready", () => {
      console.log(`Logged in as ${client.user.tag}!`);
    });
    const object = {
      starboardChannel: "id", //required
      starCount: "1", // required
      emoji: "✅", // optional defualt ⭐
    };
    const starboard = new StarboardClient(client, {
      debug: false, //optional default true
    });
    client.on("messageReactionAdd", (reaction, user) => {
      starboard.listnerAdd(reaction, object);
    });
    client.on("messageReactionRemove", (reaction, user) => {
      starboard.listnerRemove(reaction, object);
    });
    client.login("I wonder whats this?");

    Got some errors/bugs?

    Join here for help.

    Keywords

    none

    Install

    npm i discord-starboard

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    13.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • xfinity_yt