modmail.js
v3.0.5
Published
A Simple Discord Modmail Template
Downloads
21
Maintainers
Readme
Table Of Contents
About
Modmail.js is an advance Discord Modmail template.
- Performant
- Build-in Plugins
- Easy To Setup
- Extendable
Install
npm i modmail.js@latest
Example Usage
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)
}
})() Startup
Getting Started With The Modmail Bot
Replace
BOT_TOKENas your discord bot token,INBOX_CHANNEL_IDas a modmail inbox channel's id,CLIENT_INTENTSas Array Of Privileged Intents Flags andBOT_PREFIXas your bot prefixYou're all set ! Now you just have to run the the bot.
e.g node index.js,e.g node bot.js.
[email protected] and above is required for this module. Learn More
How to use
Allow private message from server members
default:allowedDM ( 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.
Plugins
Use plugins to improve user experience
Links
License
This project is available as open source under the terms of the Apache License 2.0
