Modmail.js is an advance Discord Modmail template.
- Performant
- Build-in Plugins
- Easy To Setup
- Extendable
npm i modmail.js@latest
const { Modmail, Intents } = require('modmail.js')
(async () => {
try{
const modmail = await Modmail({
token: 'BOT_TOKEN',
inbox: 'INBOX_CHANNEL_ID',
prefix: 'BOT_PREFIX',
clientIntents: ['CLIENT_INTENTS'],
message: '@mentions/messages',
});
console.log(modmail)
}catch(e){
console.log(e)
}
})()
Getting Started With The Modmail Bot
-
Replace
BOT_TOKEN
as your discord bot token,INBOX_CHANNEL_ID
as a modmail inbox channel's id,CLIENT_INTENTS
as Array Of Privileged Intents Flags andBOT_PREFIX
as your bot prefix -
You're all set ! Now you just have to run the the bot.
e.g node index.js
,e.g node bot.js
.
node.js@v16.6.0 and above is required for this module. Learn More
-
Allow private message from server members
default:allowed
-
DM ( Direct Message ) Your Bot And It will react ✅ to your message
-
Check Your Inbox Channel, See If There's Anything
To Reply A User
<PREFIX>reply <USER_ID> <YOUR_MESSAGE>
e.g.!reply 123456677544 Hello
Please Read Our Docs To Learn More.
Use plugins to improve user experience
This project is available as open source under the terms of the Apache License 2.0