Skip to main content

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

image

Options for modmail function

OptionsTypeRequiredDefaultDescription
mailnameStringโœ˜modmail-{id}Custom modmail name!
contentStringโœ˜noneMessage Content outside of embed
roleRole IDโœ˜noneSupport Role ID to let them see. not ping them.
pingRoleRole IDโœ˜noneSupport Role ID to ping them
dmToggleBooleanโœ˜trueToggle ON/OFF the dm modmail feature
blacklistUserArrayโœ˜noneBlacklist users if they are spamming
blacklistGuildArrayโœ˜noneSet Guilds in blacklist zone so you can't create modmails in that guild
categoryIDCategory IDโœ˜noneCategory ID to make the server clean

Embeds

OptionsTypeRequiredDefaultDescription
embedColorHex Codeโœ˜#075FFFColor of the embed which is sent in modmail
creditBooleanโœ˜trueCredit the package

Buttons

OptionsTypeRequiredDefaultDescription
delColorButton Styleโœ˜DANGERThe color of the Delete Modmail Button
delEmojiEmoji IDโœ˜โŒThe emoji of the Delete Modmail Button
trColorButton Styleโœ˜PRIMARYThe color of the Transcript Modmail Button
trEmojiEmoji IDโœ˜๐Ÿ“œThe emoji of the Transcript Modmail Button