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 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.
ItsActuallyTJ
ItsActuallyTJOP2y ago
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
ItsActuallyTJ
ItsActuallyTJOP2y ago
already have done this
ItsActuallyTJ
ItsActuallyTJOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y ago
is that required?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y ago
kk same thing disallowed
ItsActuallyTJ
ItsActuallyTJOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y ago
its okay I appreciate the help im going to go thriough and enable the intents one by one
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
ItsActuallyTJ
ItsActuallyTJOP2y 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
Want results from more Discord servers?
Add your server