Discord.py: on_member_join suddenly stopped working
discord.py
1.5.0 now supports discord API's Privileged Gateway Intents. In order to be able to exploit server data, you need to:
- Enable
Presence Intent
andServer Members Intent
in your discord application:
- Use
discord.Intents
at the beginning of your code:
intents = Intents.all()
#If you use commands.Bot()
bot = commands.Bot(command_prefix="!", intents=intents)
#If you use discord.Client()
client = discord.Client(intents=intents)