fix: disable presence intent on public bots

This commit is contained in:
Isaac 2023-06-29 23:45:15 +01:00
parent e8bf45a9a4
commit c7d9bbff53
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -17,6 +17,7 @@ module.exports = class Client extends FrameworkClient {
constructor(config, log) { constructor(config, log) {
super({ super({
intents: [ intents: [
...[
GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions, GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping, GatewayIntentBits.DirectMessageTyping,
@ -24,7 +25,8 @@ module.exports = class Client extends FrameworkClient {
GatewayIntentBits.Guilds, GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences, ],
...(process.env.PUBLIC_BOT !== 'true' ? [GatewayIntentBits.GuildPresences] : []),
], ],
partials: [ partials: [
Partials.Channel, Partials.Channel,