Issue
This Content is from Stack Overflow. Question asked by Lancelot
I get this error:
Traceback (most recent call last):
File "C:Users90538PycharmProjectshitcumbotmain.py", line 19, in <module>
client.run(TOKEN)
TypeError: Client.run() missing 1 required positional argument: 'token'
And my code is this:
import discord
client = discord.Client
TOKEN = 'MTAyMDgwODg0MDU1MzQzNTMwNw.GtpCS5.FH09V18UCS83pZIKF6w05m3_PCNzytZYqN8sWY'
client.event
async def on_ready():
print('We have logged in as {0.user}'
.format(client))
client.run(TOKEN)
I googled for half an hour but none of the solutions worked. Help please.
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.