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 ID✅noneChannel ID of a Discord TextChannel
buttonssuggestButtons❌default buttonsPass a suggestButtons Object to customize the button
embedCustomizableEmbed❌default embedPass a CustomizableEmbed Object to customize the embed
suggestionstring❌noneThe 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