theAbdoSabbagh / DiscordScraper

Discord guild members profile picture, username, ID and Bio scraper.
MIT License
41 stars 4 forks source link

TypeError: __init__() missing 1 required keyword-only argument: 'intents' #4

Open echan00 opened 1 year ago

echan00 commented 1 year ago

What could be the problem?

Traceback (most recent call last):
  File "/Users/xxx/Downloads/Discord-Scraper2/source/main.py", line 2, in <module>
    from internal.selfbot import client
  File "/Users/xxx/Downloads/Discord-Scraper2/source/internal/selfbot.py", line 7, in <module>
    client = Client(chunk_guilds_at_startup = False)
TypeError: __init__() missing 1 required keyword-only argument: 'intents'
solo449 commented 1 year ago

get discord.py or just do pip install discord

theAbdoSabbagh commented 1 year ago

Adjust the commands to how python is setup in your machine.

python3 -m pip uninstall discord -y
python3 -m pip install discord.py-self

Your error shows that you're using discord.py which is a different library than discord.py-self. This library uses discord.py-self, a version of discord.py but for selfbots, aka user accounts.