All GatewayIntentBits?

Is there a way to add all intents?
8 Replies
Space
Space•10mo ago
pls ping i wont see shit
-Carlos👑
-Carlos👑•10mo ago
this is not recommended, you should only add the ones you need
Space
Space•10mo ago
nerd ok ty
Lioness100
Lioness100•10mo ago
@spacebanane but if you want to be lawful evil, it would be
import { Client, GatewayIntentBits } from 'discord.js';

const client = new Client({
// or just 3276799, since that's what it resolves to
intents: Object.values(GatewayIntentBits).reduce((acc, p) => acc | p, 0)
});
import { Client, GatewayIntentBits } from 'discord.js';

const client = new Client({
// or just 3276799, since that's what it resolves to
intents: Object.values(GatewayIntentBits).reduce((acc, p) => acc | p, 0)
});
Don't tell anyone I told you evilpatrick
Space
Space•10mo ago
Will this bomb shell my bot with events/data?
Lioness100
Lioness100•10mo ago
yeah but performance hit is negligible
Space
Space•10mo ago
ight. Will save for later. thank you sir 🥗
Lioness100
Lioness100•10mo ago
you're welcome