Skip to content

Commit

Permalink
fix: disable presence intent on public bots
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jun 29, 2023
1 parent e8bf45a commit c7d9bbf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/client.js
Expand Up @@ -17,14 +17,16 @@ module.exports = class Client extends FrameworkClient {
constructor(config, log) {
super({
intents: [
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping,
GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
...[
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping,
GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
],
...(process.env.PUBLIC_BOT !== 'true' ? [GatewayIntentBits.GuildPresences] : []),
],
partials: [
Partials.Channel,
Expand Down

0 comments on commit c7d9bbf

Please sign in to comment.