discord-starboard
v0.0.2
Published
Easy to use discord.js starboard package for your bot! Uses discord.js v13.
Downloads
2
Readme
Discord Starboard
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.