Skip to main content

starboard

Efficient yet Simplest starboard system ever existed !

Program​

const simplydjs = require("simply-djs");
simplydjs.starboard(client, reaction, {
// options (Optional)
})
INFO

Usage:​

This function should be used only in messageReactionAdd, messageReactionDelete and messageDelete events

tip

When using the function for messageDelete event, replace reaction to message

  • Example:

    client.on('messageDelete', () => {
    simplydjs.starboard(client, message, {
    // options (Optional)
    })
    })

Output​

image

Arguments:​

simplydjs.starboard(
client: Discord.Client,
reaction: Discord.Message | Discord.MessageReaction,
options: starboardOption
)

Options starboardOption​

ParameterTypeRequiredDefaultDescription
channelIdChannel ID✅noneChannel ID of a Discord TextChannel
embedStarboardEmbed❌default embedPass a StarboardEmbed Object to customize the embed
emojistring❌⭐Emoji required as reaction to list the message on the starboard
minstring/number❌2The number of reactions required to list in the starboard
StarboardEmbed options

StarboardEmbed​

ParameterTypeDescription
authorMessageEmbedAuthorAuthor of the embed passed as an object
titlestringTitle of the embed in a function
colorColorResolvableColor of the embed passed as a Hex Code (or) RGB Value
descriptionstringDescription of the embed that you're trying to edit.