0

So I'm building a bot to learn and practice but I'm getting:

raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.

I have tried:

intents = discord.Intents.default()
intents.message_content = True
intents.members = True

and

intents = discord.Intents.all()

but both give the same error. Presence intent and server members intent is enable on the bot in teh discord portal. I've tried google first and that gave me the all() to try and have tried the ai tools before coming here, but they can't suggest anything either.

If anyone can suggest anything or help I'll be very grateful.

Thanks very much in advance.

Edit: I've narrowed it down by running them in isolation and have found it is intents.message_content = True that causes the failure but still stuck as to what to do next.

1
  • if it shows problem with message_content then maybe you have select Message Content Intent on developer portal Commented Jul 6 at 21:27

1 Answer 1

0

If you have problem with message_content then probably you forgot Message Content Intent

Message Content Intent

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.