bot doesnt send anything when i send a command

i tried a ping command for my Xen bot and it doesnt send anything back not sure why i can send the code of index.js and messageCreate.js and see if yall know whats wrong in it
24 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
Squid
Squid2y ago
Do you have the GuildMessages and MessageContent intents?
jorrell
jorrellOP2y ago
yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
alr let me fix it and see if that works
jorrell
jorrellOP2y ago
now its showing this
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
im using v14
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
i didnt its still the same
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
i reverted back to gatewayintentbits and its says this aswell
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
they auto save
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
const client = new Client({
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
so take it out?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jorrell
jorrellOP2y ago
alr
d.js docs
d.js docs2y ago
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted. If you are using the GuildMembers, GuildPresences, or MessageContent intents, you need to enable them in the developer portal: • Developer Portal > Your app > Bot > Privileged Gateway Intents
jorrell
jorrellOP2y ago
it works thanks forgot to say that

Did you find this page helpful?