Skip to content
Advertisement

on_member_join event discord.py

I maked an auto roles giving system with on_member_join event, it has worked until now, now it’s not sending messages to members, and not giving roles. Please help:

JavaScript

Advertisement

Answer

It sounds like you need intents.

You’ll need to add this code above your definition of bot:

JavaScript

Now, add the intents=intents parameter to your bot initialization underneath the intents bit:

JavaScript

Make sure you enable the members intent in the developer portal. You can read up on intents more here.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement