Home > Mobile >  Im making a on_member_join and remove event, but if the bot is in any other server and someone joins
Im making a on_member_join and remove event, but if the bot is in any other server and someone joins

Time:10-14

Sends a member joined msg in my channel when a person joins another server that has the bot in it. I also don't get any errors so everything works, just don't want it sending a msg to me when someone joined another server, that has my bot in it.

This is my code:

@client.event
async def on_member_join(member):
  channel = client.get_channel(870700792691167278) # replace id with the welcome channel's id
  await channel.send(f"{member.mention} has arrived!, check out            
  • Related