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
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "simply-djs";
simplydjs.suggestSystem(interaction, {
channelId: '01234567890123' // channelId (required)
// options (optional)
})
Output
Arguments:
simplydjs.suggestSystem(
interaction: Discord.Message | Discord.CommandInteraction,
options: suggestOptions
)
- interaction
Discord.Message
|Discord.CommandInteraction
- options:
suggestOptions
Options suggestOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channelId | Channel ID | ✅ | none | Channel ID of a Discord TextChannel |
buttons | suggestButtons | ❌ | default buttons | Pass a suggestButtons Object to customize the button |
embed | CustomizableEmbed | ❌ | default embed | Pass a CustomizableEmbed Object to customize the embed |
suggestion | string | ❌ | none | The suggestion to post in the channel |
suggestButtons options
suggestButtons
Parameter | Type | Description |
---|---|---|
upvote | btnTemplate | Pass an btnTemplate Object to customize the button |
downvote | btnTemplate | Pass an btnTemplate Object to customize the button |