Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

welcoming users using discord.py

@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}""")
Source by www.techwithtim.net #
 
PREVIOUS NEXT
Tagged: #welcoming #users
ADD COMMENT
Topic
Name
1+3 =