-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
36 lines (29 loc) · 857 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const { Client, Collection } = require("discord.js");
const client = new Client({
/* messageCacheLifetime: 60,
fetchAllMembers: false,
messageCacheMaxSize: 10,
restTimeOffset: 0,
restWsBridgetimeout: 100,
shards: "auto", */
allowedMentions: {
parse: ["roles", "users"],
repliedUser: true,
},
partials: ["MESSAGE", "CHANNEL", "REACTION"],
intents: 32767,
})
module.exports = client
client.commands = new Collection()
client.slashCommands = new Collection()
client.config = require("./config")
// most people use handler like below
require("./handler/mongoose")(client) // delete this if you don't want it
require("./handler/command")(client)
// login
client.login(process.env.token)
/*
* @INFO simple code with no error
*
* @INFO https://github.com/FuadJTM/discord.js-select-menu-simple
*/