const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD

how do i make a client with the same intent flags in v14
5 Replies
d.js toolkit
d.js toolkit7mo 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!
felix2336
felix23367mo ago
Use GatewayIntentBits instead of Intents
d.js docs
d.js docs7mo ago
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined - All SCREAMING_SNAKE_CASE enums have been changed to PascalCase - Intents: Intents.FLAGS.GUILD_MESSAGES -> GatewayIntentBits.GuildMessages - Permissions: Permissions.FLAGS.SEND_MESSAGES -> PermissionFlagsBits.SendMessages
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs7mo ago
Tag suggestion for @KinGu: Version 14 has released! Please update at your earliest convenience. - Update: npm rm discord.js npm i discord.js - Update guide (use CTRL + F to search for the old method or property) Suggestion for @KinGu: :guide: Additional Information: Updating from v13 to v14 read more
Want results from more Discord servers?
Add your server