Skip to content
Advertisement

Discord.py on_member_join not working, no error message

I am trying to make a discord bot with the Discord.py library. The commands with the @client.command() decorator work fine for me, but none of the event ones that I tried work.

JavaScript

I would expect this to output to the terminal or in the channel id I put in, but nothing appears, not even an error message.

*I used client. for all functions. *I am doing this on mac.

Im not quite sure why its working, I do not get any error messages, and I cant seem to find anyone else with this problem.

Thanks in advance

Advertisement

Answer

With version >1.5.0 you can do something like this:

JavaScript

You also need to enable intents in the developer portal in https://discord.com/developers/applications. Bot > Bot > Presence & Server Members Intents > Toggle On

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