-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.js
More file actions
34 lines (32 loc) · 1.17 KB
/
client.js
File metadata and controls
34 lines (32 loc) · 1.17 KB
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
const { Client, GatewayIntentBits, Partials, Collection } = require('discord.js');
const alias = new Client({
intents: [
GatewayIntentBits.Guilds,
// GatewayIntentBits.GuildMembers,
// GatewayIntentBits.GuildModeration,
// GatewayIntentBits.GuildIntegrations,
// GatewayIntentBits.GuildWebhooks,
// GatewayIntentBits.GuildInvites,
// GatewayIntentBits.GuildVoiceStates,
// GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
// GatewayIntentBits.GuildMessageTyping,
// GatewayIntentBits.DirectMessages,
// GatewayIntentBits.DirectMessageReactions,
// GatewayIntentBits.GuildScheduledEvents,
// GatewayIntentBits.AutoModerationConfiguration,
// GatewayIntentBits.AutoModerationExecution,
// GatewayIntentBits.MessageContent,
],
partials: [
Partials.Channel,
Partials.Message,
Partials.Reaction,
]
});
alias.commands = new Collection();
alias.msgCommands = new Collection();
alias.intCommands = new Collection();
alias.events = new Collection();
module.exports = alias;