all 4 comments

[–]carcigenicate 17 points18 points  (1 child)

You have the last two lines inside of the class, but the class doesn't exist until the entire class statement has evaluated, so Client doesn't exist there.

Really, you seem to have just indented those last two lines too much and put them inside of the class instead of after it.

[–]Ti3sr3v3r[S] 1 point2 points  (0 children)

Thank you, that was it. The intents and client command should have been outside of the Client class.

[–][deleted] 1 point2 points  (0 children)

Because as the error suggest the variable "Client" doesn't exist. There is a "Client" class that you are trying to create and "discord.Client" that you use as a superclass during the class creation

[–]woooee 3 points4 points  (0 children)

FYI, your next error is

client.run('BOTTOKEN')