I have tried running this script without the intents at first, but then VS Code told me that I needed it without giving me any hint as to what to put after intents.
Code:
import discord
client = discord.Client(intents=)
@client.event
async def on_connect():
for user in client.user.friends:
try:
await user.send("MESSAGE")
print(f"Working with: {user.name}")
except:
print(f"Not working on: {user.name}")
client.run("Tokennothereforprivacy" , bot=False)