#πŸ”’ I need Help with the discord module

18 messages Β· Page 1 of 1 (latest)

eternal sorrel
#

Hi, i am trying to make a discord bot with python and while running my code i encounter this problem
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'
what should i do? plz help

winter quarryBOT
#

@eternal sorrel

Python help channel opened

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.

eternal sorrel
#

it says
line 14 in <module>
client = discord.Client()
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'

#

pls help

crude mango
eternal sorrel
#

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

crude mango
eternal sorrel
#

thank you verry much kkang_kkang my issue has been resolved

#

ill be closing this post now

#

thank you very much

#

!close

winter quarryBOT
#
Python help channel closed with !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.