@client.event
async def on_member_join(member):
for channel in member.guild.channels:
if str(channel) == "general": # We check to make sure we are sending the message in the general channel
await channel.send_message(f"""Welcome to the server {member.mention}""")