Can anyone help me with the discord intents
i dont know what this error means:
39 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!code:
now i changed the Intents.FLAGS to GatewayIntentBits
and i get a complete different error
Tag suggestion for @nnktv28:
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
i dont have permissions i have
partials: ['MESSAGE', 'CHANNEL', 'REACTION', 'GUILD_MEMBER', 'USER'],
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Point is:
Discord.Intents
doesn't exist anymore if you updated to discord.js 14. Change it to Discord.GatewayIntentBits
instead. Further, you have to convert them all to PascalCase, so GUILD_MEMBERS
becomes GuildMembers
, GUILD_BANS
becomes GuildBans
, etc.Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
this is how it is now
<:PES_Yeeeees:601747554522365952>
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so instead of
partials: ['MESSAGE', 'CHANNEL', 'REACTION', 'GUILD_MEMBER', 'USER'],
to do Partials.Channel: ['MESSAGE', 'CHANNEL', 'REACTION', 'GUILD_MEMBER', 'USER'],
?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ohhh
partials: ['Partials.Message', 'Partials.Channel', 'Partials.Reaction', 'Partials.GuildMember', 'Partials.User'],
?
like that?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Discord.Partials.Message
in your case probably since you are importing it all at onceoh okay
so directly
partials: [Discord.Partials.Message],
<:PES_Yeeeees:601747554522365952>
Yup
updated code:
i still get the bits error
T_T
What bits error was that again?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
DirectMessagesReactions
should be DirectMessageReactions
(there is one s too much after Message)
Goddamn it 😄Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
nope, still get the same error
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
There is another typo in GuildPresences
nope, saved and reloaded the bot
ohh mb XD
And don't forget to add your remaining partials in the same manner :)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
?
wdym sharding?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thats for music stuff right?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ohh then nope
its a private bot
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh ok thxx
what are erela events for??
cause i see couple bots use it
If it's this erela, reads like something that was used to support music playing? 🤔 But the project was archived 8 months ago by the looks of it: https://github.com/MenuDocs/erela.js
ohh ok
yeah i def dont need that XD
how can i find where the typo is here
it says position 41804
but what line is that??
nvm found it
i get this error now
what are disallowed intents??