Skip to main content

manageSug

A Suggestion handler which handles all sugestions from the package

WARNING

suggestBtn() is deprecated !

Use manageSug() instead of suggestBtn()

note

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

Program

const simplydjs = require("simply-djs");
simplydjs.manageSug(interaction, { 
// options (optional)
})
note

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

Arguments:

simplydjs.manageSug(
interaction: Discord.ButtonInteraction,
options: manageSugOptions
);

Options manageSugOptions

ParameterTypeRequiredDefaultDescription
denyColorResolvableREDAn ColorResolvable or Hex code of the embed when the suggestion is denied
acceptColorResolvableGREENAn ColorResolvable or Hex code of the embed when the suggestion is accepted