Reputation: 59
I am trying to print the username + discriminator of a when they update their avatar/username/discriminator, but nothing happens when I update my own username, avatar or discrim. I have also made sure to enable intents on https://discord.com/developers/applications/(my application id)/bot
My code is:
import discord
intents = discord.Intents().all()
client = discord.Client(Intents=intents)
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_user_update(before, after):
print(str(after))
client.run('my token')
Upvotes: 0
Views: 232
Reputation: 421
Keyword arguments are case-sensitive, the keyword argument for client intents configuration is intents
, not Intents
. So the client instance must be:
client = discord.Client(intents=intents)
Upvotes: 1