import discord
client = discord.Client()
TOKEN = '**'
@client.event
async def on_ready():
print('logged')
await tester()
@client.event
async def tester():
a = client.get_guild(457484930549809162).members
for i in a:
print(i)
client.run(TOKEN)
intents = discord.Intents.all()
client = discord.Client(intents=intents)
intents = discord.Intents.default()
intents.members = True