Socket
Socket
Sign inDemoInstall

discord-starboard

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-starboard

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


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Discord Starboard


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

Getting Started

  • Discord Starboard
  • Got some errors/bugs?

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.

FAQs

Last updated on 24 Nov 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