Used disallowed intents

I have all intents granted in my developer portal, but my app keeps throwing the error, "Used disallowed intents".
26 Replies
d.js toolkit
d.js toolkit12mo 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.
ItsActuallyTJ
ItsActuallyTJ12mo ago
d.js docs
d.js docs12mo 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
ItsActuallyTJ
ItsActuallyTJ12mo ago
already have done this
ItsActuallyTJ
ItsActuallyTJ12mo ago
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
is that required?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
one sec
const { Client, GatewayIntentBits } = require('discord.js');
const bot = new Client({
intents: [
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.MessageContent
]
})
const { Client, GatewayIntentBits } = require('discord.js');
const bot = new Client({
intents: [
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.MessageContent
]
})
I am reading messages from the user, then replying to the user with message and reaction I dont need anything else but I had these here and they worked before, is my constructor out of date
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
yeah its saved the intents were never turned off iirc I just unchecked and rechecked just to make sure nothing has changed since I last used this other than maybe I was on a different discord.js version? i dont remember when the last update was
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
just tried and yeah, unfortunately I do Should I just try making a new bot, im not opposed to doing that it wouldnt affect much i dont know what else to do this is weird its been 5mins since I updated the intents I think
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
i just fresh installed discord.js 💀 i intiially had this bot on another machine but it wasnt working so I switched to my main machine and fresh installed discord.js and the same error on both
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
just tried that too So now all I have is
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.MessageContent
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.MessageContent
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
kk same thing disallowed
ItsActuallyTJ
ItsActuallyTJ12mo ago
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
its okay I appreciate the help im going to go thriough and enable the intents one by one
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
looks like MessageContent and GuildMembers trip the error all the others work did they change the ability for unverified bots to have access? that would be quite annoying i've never had an issue with this before
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJ12mo ago
yeah its really strange ill try making a new bot or something :(( thanks for the help though looks like that did the trick strange I don't believe so, it's def possible but I could have sworn I double checked that Oh well, thanks for the help anyhow