Discord.py on_member_join not working, no error message

With version >1.5.0 you can do something like this: import discord intents = discord.Intents.default() intents.members = True client = discord.Client(intents=intents) @client.event async def on_member_join(member): await member.send(“Welcome!”) You also need to enable intents in the developer portal in https://discord.com/developers/applications. Bot > Bot > Presence & Server Members Intents > Toggle On

Why does on_message stop commands from working?

From the documentation: Overriding the default provided on_message forbids any extra commands from running. To fix this, add a bot.process_commands(message) line at the end of your on_message. For example: @bot.event async def on_message(message): # do some extra stuff here await bot.process_commands(message) The default on_message contains a call to this coroutine, but when you override it … Read more

discord.py Selfbot can’t get guild users

https://github.com/Rapptz/discord.py/issues/5782#issuecomment-707908993 Look at it. You have to enable intents for your bot, especially the server members intent (from the discord dev portal). Then, in your code, do this: intents = discord.Intents.default() intents.members = True client = discord.Client(intents = intents, **kwargs) # OR COMMANDS.BOT I’m not sure that this will work, but give it a try. … Read more