-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfranz.js
More file actions
35 lines (31 loc) · 688 Bytes
/
Copy pathfranz.js
File metadata and controls
35 lines (31 loc) · 688 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
27
28
29
30
31
32
33
34
35
const Discord = require("discord.js");
const { Client, GatewayIntentBits, Options } = Discord;
class Franz extends Discord.Client {
constructor(...args){
super({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages
],
makeCache: Options.cacheWithLimits({
MessageManager: 0,
ThreadManager: 0,
PresenceManager: 0,
ReactionManager: 0,
GuildMemberManager: 0,
UserManager: 0,
GuildEmojiManager: 0,
VoiceStateManager: 0
}),
sweepers: {
...Options.DefaultSweeperSettings,
messages: {
interval: 300,
lifetime: 60,
},
},
...args[0]
}, ...args.slice(1));
}
}
module.exports = Franz;