Intents

Hey there Developers, I have a question relating to intents. What are the intent names? I keep gettting them wrong, havent touched discord js in ages.
7 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs11mo ago
Suggestion for @Osinted: :dtypes: v10: GatewayIntentBits read more
NyR
NyR11mo ago
All of them are mentioned in this enum
Osintedx
OsintedxOP11mo ago
for some odd reason and it is defined. ReferenceError: GatewayIntentBits is not defined Actually, wait.
NyR
NyR11mo ago
Because you need to import it, it's an enum
Osintedx
OsintedxOP11mo ago
Ah, I see.
toasta.i9cpu13thgen2024model$499
i use this const { Client, GatewayIntentBits } = require('discord.js');

Did you find this page helpful?