Skip to main content

suggestSystem

How cool is stealing an emoji from another server ? Feel the power with this function

note

This function requires you to connect() to the mongo database !

Program

const simplydjs = require("simply-djs");
simplydjs.suggestSystem(interaction, { 
channelId: '01234567890123' // channelId (required)

// options (optional)
})

Output

image

Arguments:

simplydjs.suggestSystem(
interaction: Discord.Message | Discord.CommandInteraction,
options: suggestOptions
)

Options suggestOptions

ParameterTypeRequiredDefaultDescription
channelIdChannel IDnoneChannel ID of a Discord TextChannel
buttonssuggestButtonsdefault buttonsPass a suggestButtons Object to customize the button
embedCustomizableEmbeddefault embedPass a CustomizableEmbed Object to customize the embed
suggestionstringnoneThe suggestion to post in the channel
suggestButtons options

suggestButtons

ParameterTypeDescription
upvotebtnTemplatePass an btnTemplate Object to customize the button
downvotebtnTemplatePass an btnTemplate Object to customize the button