Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message In discord.py #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cicada0007
Copy link

First I tried to run >python -m class_photo --all

(.venv) F:\open Source\class-photo-master>python -m class_photo --all

  File "F:\open Source\class-photo-master\class_photo\discord.py", line 9, in <module>
    bot = commands.Bot('-cp')
          ^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents'

I noticed that an error missing intents is missing in the code

So , I have added some changes in discord.py

The error message I encountered suggests that the Bot class from the discord.py library is missing the required intents argument. Starting from version 1.5 of discord.py, I passed the intents parameter explicitly when creating an instance of the Bot class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant