suggestSystem
This is an example of suggestSystem
With Customization
const simplydjs = require('simply-djs')
let { Database } = require('quickmongo')
let db = new Database('mongo String')
interactionCreate
Event
// interactionCreate event
simplydjs.suggestBtn(interaction, db, {
yesEmoji: 'emoji id', // default: โ๏ธ
yesColor: 'buttonColor', // default: green
noEmoji: 'emoji id', // default: X
noColor: 'buttonColor', // default: red
denyEmbColor: 'hex color', // default: RED
agreeEmbColor: 'hex color', // default: GREEN
})
messageCreate
Event (suggest command)
// messageCreate event
simplydjs.suggestSystem(client, message, args, {
chid: 'channel id',
embedColor: 'hex color', // defaultL #075FFF
yesEmoji: 'emoji id', // default: โ๏ธ
yesColor: 'buttonColor', // default: green
noEmoji: 'emoji id', // default: X
noColor: 'buttonColor', // default: red
})
info
Without Customization
interactionCreate
Event
// interactionCreate event
simplydjs.suggestBtn(interaction, db)
messageCreate
Event (suggest command)
// messageCreate event
simplydjs.suggestSystem(client, message, args, {
chid: 'channel id'
})
TIP
Slash Support.
The package supports Auto Slash Recognition !
So no more slash options.
Slash command format
{
name: 'suggest',
description: 'suggestSystem using simply-djs',
options: [{
name: 'suggestion',
type: 'STRING',
description: 'Suggestion',
required: true,
}],
},
Output
Options for suggestBtn function
Slash Customization
Options | Type | Required | Default | Description |
---|---|---|---|---|
sugSlash | String | โ | suggestion | Custom Suggestion Option name (Customizability++) |
Embeds
Options | Type | Required | Default | Description |
---|---|---|---|---|
denyEmbColor | Hex Code | โ | RED | Color of the denied suggestion embed |
agreeEmbColor | Hex Code | โ | GREEN | Color of the accepted suggestion embed |
Buttons
Options | Type | Required | Default | Description |
---|---|---|---|---|
yesEmoji | Emoji ID | โ | โ๏ธ | Emoji of the button which accepts suggestion |
yesColor | Button Style | โ | SUCCESS | Color for the Accept Suggestion button |
noEmoji | Emoji ID | โ | X | Emoji of the button which denies suggestion |
noColor | Button Style | โ | DANGER | Color for the Deny Suggestion button |
Options for suggestSystem function
Options | Type | Required | Default | Description |
---|---|---|---|---|
slash | Boolean | โ | false | Slash Support for the suggestSystem (need to be in a slash command) |
chid | Channel ID | โ | none | Channel to send the sweet suggestions |
Embeds
Options | Type | Required | Default | Description |
---|---|---|---|---|
embedColor | Hex Code | โ | #075FFF | Color of the suggestion embed |
credits | Boolean | โ | true | Credit the package |
Buttons
Options | Type | Required | Default | Description |
---|---|---|---|---|
yesEmoji | Emoji ID | โ | โ๏ธ | Emoji of the button which accepts suggestion |
yesColor | Button Style | โ | SUCCESS | Color for the Accept Suggestion button |
noEmoji | Emoji ID | โ | X | Emoji of the button which denies suggestion |
noColor | Button Style | โ | DANGER | Color for the Deny Suggestion button |