on_member_update not triggerring

Question:

Intents are enabled on discord developer portal, but it still isn’t triggering

import discord
intents = discord.Intents.default()
intents.members = True
intents.presences = True

@client.event
async def on_member_update(before, after):
    print('working')

Asked By: Black'n'White

||

Answers:

It should be like this

intents = discord.Intents().all()
client = commands.Bot(command_prefix = '[your prefix here]', intents = intents)
Answered By: MorpKnight
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.