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 IDnoneChannel ID of a Discord TextChannel
embedStarboardEmbeddefault embedPass a StarboardEmbed Object to customize the embed
emojistringEmoji required as reaction to list the message on the starboard
minstring/number2The 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.