modmail
This is an example of modmail
Required
Intents.FLAGS.DIRECT_MESSAGES
With Customization
const simplydjs = require('simply-djs')
messageCreate
Event (modmail command)
// messageCreate event
simplydjs.modmail(client, message, {
content: 'Hi' // default: ***Support Team***
role: 'role id', // support role
dmToggle: true, // default: true
blacklistUser: ['userid'], // blacklisted user id's
blacklistGuild: ['guildid'], // server that disabled modmail
categoryID: 'id', // category id
embedColor: 'hex code', // default: #075FFF
delColor: 'DANGER', // default: DANGER
delEmoji: 'emoji id', // default: 'โ'
})
info
Without Customization
messageCreate
Event (modmail command)
// messageCreate event
simplydjs.modmail(client, message)
Output
Options for modmail function
Options | Type | Required | Default | Description |
---|---|---|---|---|
mailname | String | โ | modmail-{id} | Custom modmail name! |
content | String | โ | none | Message Content outside of embed |
role | Role ID | โ | none | Support Role ID to let them see. not ping them. |
pingRole | Role ID | โ | none | Support Role ID to ping them |
dmToggle | Boolean | โ | true | Toggle ON/OFF the dm modmail feature |
blacklistUser | Array | โ | none | Blacklist users if they are spamming |
blacklistGuild | Array | โ | none | Set Guilds in blacklist zone so you can't create modmails in that guild |
categoryID | Category ID | โ | none | Category ID to make the server clean |
Embeds
Options | Type | Required | Default | Description |
---|---|---|---|---|
embedColor | Hex Code | โ | #075FFF | Color of the embed which is sent in modmail |
credit | Boolean | โ | true | Credit the package |
Buttons
Options | Type | Required | Default | Description |
---|---|---|---|---|
delColor | Button Style | โ | DANGER | The color of the Delete Modmail Button |
delEmoji | Emoji ID | โ | โ | The emoji of the Delete Modmail Button |
trColor | Button Style | โ | PRIMARY | The color of the Transcript Modmail Button |
trEmoji | Emoji ID | โ | ๐ | The emoji of the Transcript Modmail Button |