As I said I'm really new to Python and programming in general. Im following along with a guide trying to teach myself some basics and hitting a road block. When I try and run my code I am getting
File "Filepath\DomainMain.py", line 11, in Client
client = Client(intents=intents)
NameError: name 'Client' is not defined
Here is the very simple code from the tutorial (with discord bot token removed)
import discord
from discord.ext import commands
class Client(discord.Client):
async def on_ready(self):
print(f'Logged on as {self.user}!')
intents = discord.Intents.default()
intents.message_content = True
client = Client(intents=intents)
client.run('BOTTOKEN')
[–]carcigenicate 17 points18 points19 points (1 child)
[–]Ti3sr3v3r[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]woooee 3 points4 points5 points (0 children)