Skip to main content

starboard

This is an example of starboard

Required

Intents.FLAGS.GUILD_MESSAGE_REACTIONS
// and
partials: ['MESSAGE', 'CHANNEL', 'REACTION']

With Customization

const simplydjs = require('simply-djs')

messageReactionAdd Event

// messageReactionAdd event
simplydjs.starboard(client, reaction, {
event: 'messageReactionAdd',
chid: 'channel id',
embedColor: 'hex code', // default: #FFC83D
emoji:"emoji id", // default: โญ
min: 2, // default: 2
})

messageReactionRemove Event

// messageReactionRemove event
simplydjs.starboard(client, reaction, {
event: 'messageReactionRemove',
chid: 'channel id',
embedColor: 'hex code', // default: #FFC83D
emoji:"emoji id", // default: โญ
min: 2, // default: 2
})

messageDelete Event

// messageDelete event
simplydjs.starboard(client, message, {
event: 'messageDelete',
chid: 'channel id',
embedColor: 'hex code', // default: #FFC83D
emoji:"emoji id", // default: โญ
min: 2, // default: 2
})
info

Without Customization

messageReactionAdd Event

// messageReactionAdd event
simplydjs.starboard(client, reaction, {
event: 'messageReactionAdd',
chid: 'channel id',
})

messageReactionRemove Event

// messageReactionRemove event
simplydjs.starboard(client, reaction, {
event: 'messageReactionRemove',
chid: 'channel id',
})

messageDelete Event

// messageDelete event
simplydjs.starboard(client, message, {
event: 'messageDelete',
chid: 'channel id',
})

Output

image

Options for starboard function

OptionsTypeRequiredDefaultDescription
chidChannel IDโœ“noneChannel to send the sweet suggestions
eventStringโœ“noneEvent you are using the function (messageReactionAdd / messageReactionRemove / messageDelete)
emojiEmoji IDโœ˜noneOther Emoji can also be a star
embedColorHex Codeโœ˜#FFC83DColor of the starboard Embed
minIntegerโœ˜2Minimum stars needed to be on starboard
creditsBooleanโœ˜trueCredit the package