Discord botu yapmaya çalışırken bu şekilde hata aldım yardımcı olursanız sevinirim

kod:
import discord
from discord.ext import commands

intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix=’–’, intents=intents)
@bot.event
async def on_ready():
print(“bot hazır”)
@bot.command()
async def sa(ctx):
await ctx.send(‘as’)

@bot.event
async def on_member_remove(member):
await channel.send(f"{member} maalesef aramızdan ayrıldı")
@bot.event
async def on_member_join(member):
channel = discord.utils.get(member.guild.text_channels, name=“hos-geldiniz”)
await channel.send(f"{member} aramıza katıldı hoşgeldin kardeşim")

bot.run(tokenı gösteremiyom doğal olarak)
hata:
[2022-10-27 23:00:42] [INFO ] discord.client: logging in using static token
Traceback (most recent call last):
File “C:\Users\Lenovo\PycharmProjects\requestdeniyom\main.py”, line 22, in
bot.run(‘MTAzNTI3ODA1MzQ4OTc3MDUwNg.GSpkdu.d5tDiRLBfkyzGwFwEe33X11Qpstdexwv1BhVaY’)
File “C:\Users\Lenovo\PycharmProjects\requestdeniyom\venv\lib\site-packages\discord\client.py”, line 828, in run
asyncio.run(runner())
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py”, line 44, in run
return loop.run_until_complete(main)
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py”, line 646, in run_until_complete
return future.result()
File “C:\Users\Lenovo\PycharmProjects\requestdeniyom\venv\lib\site-packages\discord\client.py”, line 817, in runner
await self.start(token, reconnect=reconnect)
File “C:\Users\Lenovo\PycharmProjects\requestdeniyom\venv\lib\site-packages\discord\client.py”, line 746, in start
await self.connect(reconnect=reconnect)
File “C:\Users\Lenovo\PycharmProjects\requestdeniyom\venv\lib\site-packages\discord\client.py”, line 672, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to Discord Developer Portal and explicitly enable the privileged intents within your application’s page. If this is not possible, then consider disabling the privileged intents instead.
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D02C34C310>
Traceback (most recent call last):
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py”, line 116, in del
self.close()
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py”, line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py”, line 750, in call_soon
self._check_closed()
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py”, line 515, in _check_closed
raise RuntimeError(‘Event loop is closed’)
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001D02C34C310>
Traceback (most recent call last):
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py”, line 116, in del
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py”, line 108, in close
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py”, line 750, in call_soon
File “C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py”, line 515, in _check_closed
RuntimeError: Event loop is closed

Process finished with exit code 1