on_member_join and remove dont work. How to make it work?

I’m pretty sure this is an intents issue, you should enable intents.members

intents = discord.Intents.default() # Enabling everything apart from privileged intents (members & presences)
intents.members = True # Explicitly enabling `intents.members`

client = commands.Bot(..., intents=intents)

Also make sure to enable them in the developer portal

How to enable privileged gateway intents

Leave a Comment