Why is my client run command not working?


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>
TypeError: Client.run() missing 1 required positional argument: 'token'

And my code is this:

import discord

client = discord.Client


async def on_ready():
    print('We have logged in as {0.user}'


I googled for half an hour but none of the solutions worked. Help please.


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.

people found this article helpful. What about you?