File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,3 @@ redis.on("ready", () => {
214
214
// log in to Discord with your client's token
215
215
client . login ( token ) ;
216
216
} ) ;
217
-
218
- // export client
219
- module . exports = client ;
Original file line number Diff line number Diff line change 1
- const { Events } = require ( "discord.js" ) ;
2
- const { client } = require ( "../bot" ) ;
1
+ const { Client, Events } = require ( "discord.js" ) ;
3
2
const { sendEmbedMessage, serverTime } = require ( "../utils/core" ) ;
4
3
const { version } = require ( "../../package.json" ) ;
5
4
5
+ // discord bot instents and partials
6
+ const client = new Client ( {
7
+ intents : [
8
+ GatewayIntentBits . Guilds ,
9
+ GatewayIntentBits . MessageContent ,
10
+ GatewayIntentBits . GuildMessages ,
11
+ ] ,
12
+ partials : [ Partials . Channel , Partials . Message ] ,
13
+ } ) ;
14
+
6
15
module . exports = {
7
16
name : Events . MessageCreate ,
8
17
once : false ,
You can’t perform that action at this time.
0 commit comments