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.

Message Content Intenton developer portal