You seem to be using a library that relies on discord.py’s functionality and is extremely outdated (mid-2021). It is a much better idea to switch over to using discord.py itself, and I believe you can fix this with the following code:
import discord
import os
token = os.environ['TOKEN']
client = discord.Client(intents=discord.Intents.default())
# Needs to be a keyword arg, as the error message suggests
I believe you forgot to specify the intents, which is the cause of the error.
You should still be able to implement this with discord.py. Are you following a tutorial? If so, I would recommend finding another that uses discord.py itself. Outdated libraries are a huge cause of problems, especially if Discord decides to change its infrastructure.