0.0.2 • Published 2 years ago

discord-starboard v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

0.0.2

2 years ago

0.0.1

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago