It’s my fist time making a bot, and just coding in general and this error message appeared. idk how to fix it
“Traceback (most recent call last):
File “main.py”, line 4, in
client = discord.client()
TypeError: ‘module’ object is not callable”
It’s my fist time making a bot, and just coding in general and this error message appeared. idk how to fix it
“Traceback (most recent call last):
File “main.py”, line 4, in
client = discord.client()
TypeError: ‘module’ object is not callable”
I would check that you are writing correctly - remember that capitalization matters
If you are interesting in learning to code I also suggest this course
looks like i didnt capitalized a “c” lol. though now it says
"Traceback (most recent call last):
File “main.py”, line 18, in
client.run(os.getenv(‘test’))
File “/home/runner/Goose-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 723, in run
return future.result()
File “/home/runner/Goose-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 702, in runner
await self.start(*args, **kwargs)
File “/home/runner/Goose-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 665, in start
await self.login(*args, bot=bot)
File “/home/runner/Goose-Bot/venv/lib/python3.8/site-packages/discord/client.py”, line 511, in login
await self.http.static_login(token.strip(), bot=bot)
AttributeError: ‘NoneType’ object has no attribute ‘strip’ "
that may be an issue with the bot token - make sure you use the secrets tab instead of creating an .env
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.