Neden böyle bir hata alıyorum Traceback (most recent call last): File "c:\Users\burak\Desktop\dc bot\main.py", line 3, in <module> bot = commands.Bot(command_prefix='.',intents=discord.intents) AttributeError: module 'discord' has no attribute 'inte

import discord,random,asyncio
from discord.ext import commands
bot = commands.Bot(command_prefix='.',intents=discord.intents)

@bot.event
async def on_ready():
    print("hazırım")


intents = discord.Intents.all()
client = discord.Client()
async def auto_send():
    if channel == "sa":
        channel = await client.fetch_channel('kanal id si')
        await channel.send('as aga')
 
@bot.event
async def on_members_join(member):
    print( f"{member} aramıza katıldı")


@bot.event
async def on_members_remove(member):
    print( f"{member} görüşürüz")




bot.run("token")



pythonda discord kütüphanesi çok sıkıntılı vds de kütüphaneyi kurduğumda sorun almıyorum ama kendi localimde sorun alıyorum , bugün yazdığım kod ertesi gün değişiklik olmamasına rağmen hata veriyor sürekli bir hata birşeyler oluyor discord botu yazıcaksanız node.js den şaşmayın derim hocam

bu kodu nereden aldınız veya nereye bakarak yazdınız