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
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "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
);
- interaction:
Discord.ButtonInteraction
- options:
manageSugOptions
Options manageSugOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
deny | ColorResolvable | ❌ | RED | An ColorResolvable or Hex code of the embed when the suggestion is denied |
accept | ColorResolvable | ❌ | GREEN | An ColorResolvable or Hex code of the embed when the suggestion is accepted |