I have the following code that I am trying out:
@bot.event
async def on_member_join(member):
print("works")
for channel in member.guild.text_channels:
if channel.name == 'general':
await channel.send("Welcome to " + member.guild.name + ", " + member + "!")
My previous on_member_join event worked fine, but for some reason it doesn't anymore. I have tried updating to discord.py 1.5. Any help would be greatly appreciated.
I am getting no errors.

on_command_errorevent for error handling and are you sure the channel exists? - Nurqm