D
D
dreamclouds2021-01-08 16:10:59
Python
dreamclouds, 2021-01-08 16:10:59

Discord Bot how to make an invitation to the server?

When a person enters the server so that the bot sends "Welcome" and how to make it embed

@bot.event
async def on_member_join(member):
    guild_id = member.guild.id
    rez, greeting = get_greeting(779370708173193226)
    embed = discord.Embed(color=3092790, title='<a:white_butterfly:783375896416485406> Встречаем нового участника!',
                          description=f' {member} Добро пожаловать! Чтобы легче было ориентироваться на сервере, прочитай [информацию](https://discord.gg/kqC2Ew2Jm9) и [правила](https://discord.gg/X4eCJAg4a9)')
    embed.set_thumbnail(url=f'{member.avatar_url}')
    embed.set_footer()


    await channel.send(embed=embed)


It ignores the command, what's the problem? Please help please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2021-01-08
@dreamclouds

Why are events not working in discord.py?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question