bumpSystem
A Very cool bump reminder system that reminds when a bump is necessary [Only Disboard]
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.bumpSystem(client, message, {
channelId: ["01234567890123"], // channelId (required if auto: false)
// options (optional)
})
INFO
This should be implemented in the messageCreate
event and requires a Message Intent
!
client.on('messageCreate' => {
simplydjs.bumpSystem() // bump function
})
Output
Arguments:
simplydjs.bumpSystem(
client: Discord.Client,
message: Discord.Message,
options: bumpOptions
)
- client:
Discord.Client
- message:
Discord.Message
- options:
bumpOptions
Options bumpOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
content | string | ❌ | none | The content of your message that is sent to remind (maybe a ping) |
embed | TypeEmbed | ❌ | default embeds | The embed to remind or thank the user who bumped |
toggle | boolean | ❌ | true | Toggle the bumpSystem for your preference. |
auto | boolean | ❌ | true | Sets the channelId automatically to remind. |
channelId | Channel ID[] | ❌ | none | Array of Channel ID of a Discord TextChannel (Only when auto: false) |
TypeEmbed options
TypeEmbed
Parameter | Type | Description |
---|---|---|
thankEmb | MessageEmbed | The embed sent to thank the user who bumped the server |
bumpEmb | MessageEmbed | The embed sent to remind others to bump the server |