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
Options for starboard function
Options | Type | Required | Default | Description |
---|---|---|---|---|
chid | Channel ID | โ | none | Channel to send the sweet suggestions |
event | String | โ | none | Event you are using the function (messageReactionAdd / messageReactionRemove / messageDelete) |
emoji | Emoji ID | โ | none | Other Emoji can also be a star |
embedColor | Hex Code | โ | #FFC83D | Color of the starboard Embed |
min | Integer | โ | 2 | Minimum stars needed to be on starboard |
credits | Boolean | โ | true | Credit the package |