-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (20 loc) · 759 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (20 loc) · 759 Bytes
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
const Discord = require("discord.js")
const chalk = require("chalk")
const {
Client,
GatewayIntentBits,
Partials,
Collection,
} = require("discord.js");
const { Guilds, GuildMembers, GuildMessages, MessageContent, GuildPresences } = GatewayIntentBits;
const { User, Message, GuildMember, ThreadMember } = Partials;
const client = new Client({
intents: [Guilds, GuildMembers, GuildMessages, MessageContent, GuildPresences],
partials: [User, Message, GuildMember, ThreadMember],
});
client.config = require("./config.json")
const { loadEvents } = require("./Handlers/eventHandler");
client.events = new Collection();
client.commands = new Collection();
loadEvents(client)
client.login(client.config.token);