You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,6 +25,7 @@ Modmail.js is an advance [Discord](https://discordapp.com) Modmail template.
25
25
- Performant
26
26
- Build-in Plugins
27
27
- Easy To Setup
28
+
- Extendable
28
29
29
30
### Install
30
31
@@ -33,18 +34,17 @@ Modmail.js is an advance [Discord](https://discordapp.com) Modmail template.
33
34
### Example Usage
34
35
35
36
```
36
-
const modmail = require('modmail.js')
37
+
const { on, Intents } = require('modmail.js')
37
38
38
-
modmail.on({
39
+
on({
39
40
token: 'BOT_TOKEN',
40
41
inbox: 'INBOX_CHANNEL_ID',
41
42
prefix: 'BOT_PREFIX',
42
-
message: '@mentions/messages',
43
-
inline: true, // inlineReply
44
-
43
+
clientIntents: ['CLIENT_INTENTS'],
44
+
message: '@mentions/messages',
45
45
})
46
46
.then(r=>{
47
-
console.log(r)
47
+
console.log(r.plugins)
48
48
}).catch(err => {
49
49
console.log(err)
50
50
})
@@ -55,10 +55,12 @@ modmail.on({
55
55
56
56
__Getting Started With The Modmail Bot__
57
57
58
-
1. Replace `BOT_TOKEN` as your discord bot token, `INBOX_CHANNEL_ID` as a modmail inbox channel's id and `BOT_PREFIX` as your [bot prefix](https://botstudios.github.io/modmail.js/prefix)
58
+
1. 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](https://botstudios.github.io/modmail.js/privileged-intents) and `BOT_PREFIX` as your [bot prefix](https://botstudios.github.io/modmail.js/prefix)
59
59
60
60
2. You're all set ! Now you just have to run the the bot. `e.g node index.js`, `e.g node bot.js`.
61
61
62
+
> [email protected] and above is required for this module. [Learn More](https://modmail.js.org)
63
+
62
64
#### How to use
63
65
64
66
1. Allow private message from server members `default:allowed`
@@ -80,7 +82,7 @@ Use plugins to improve user experience
@@ -95,4 +97,3 @@ Use plugins to improve user experience
95
97
#### License
96
98
97
99
This project is available as open source under the terms of the [Apache License 2.0](https://github.com/BotStudios/modmail.js/blob/v2/LICENSE)
0 commit comments