Discord.py: Login fails [rewrite]

Created on 3 Oct 2018  路  2Comments  路  Source: Rapptz/discord.py

client.run("email", "password") appears to fail with the trace back being...

Traceback (most recent call last):
  File "/home/god/projects/discord_rpc/self_bot.py", line 18, in <module>
    client.run("*", "*")
  File "/usr/lib/python3.7/site-packages/discord/client.py", line 571, in run
    return task.result()
  File "/usr/lib/python3.7/site-packages/discord/client.py", line 478, in start
    await self.login(*args, bot=bot)
TypeError: login() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given

All 2 comments

run() takes a token as an argument. An email/password combination has been invalid for quite some time now.

You can find your token, here: https://discordapp.com/developers/applications/

Click on your Application, click on Bot to the left... (Add Bot if you haven't already done so) and then you should see a token which you can click to reveal and copy.

Also worth noting that Self-bots are against the Discord Terms of Service and could result in termination if found.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danshat picture danshat  路  3Comments

tairabiteru picture tairabiteru  路  3Comments

jzburda picture jzburda  路  3Comments

AraHaan picture AraHaan  路  3Comments

j0hnmeow picture j0hnmeow  路  3Comments