Answer the question
In order to leave comments, you need to log in
How to make a greeting in a discord bot?
I can't seem to get to welcome new server users. I have the code but it throws an error:
async def discord.on_member_join (member):
^
SyntaxError: invalid syntax
@client.event
async def discord.on_member_join(member):
welcome = client.get_channel(guild_welcome[member.guild.id])
embed=discord.Embed(title="Добро пожаловать!", description=f"К нам в {member.guild.name} зашёл {member.mention}! Обязательно прочти правила.", color=0xCC974F)
await welcome.send(embed=embed)
Answer the question
In order to leave comments, you need to log in
Most likely an error in the first line. it also says "invalid syntax". It's most likely a matter of sign placement. try doing like this -async def on_member_join(member):
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question