#π I need Help with the discord module
18 messages Β· Page 1 of 1 (latest)
@eternal sorrel
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
it says
line 14 in <module>
client = discord.Client()
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'
pls help
thanks
umm sorry
but its now showing this
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.
what shard? i dont get it
Are you using any tutorials to build the bot? If not, kindly go through one, here is one: https://realpython.com/how-to-make-a-discord-bot-python/
thank you verry much kkang_kkang my issue has been resolved
ill be closing this post now
thank you very much
!close
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.