G
G
Gleb2021-09-28 21:15:27
Python
Gleb, 2021-09-28 21:15:27

How to change already sent embed in discord.py?

I would like to know how it is possible to name data in an embed that has already been sent.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Telmor, 2021-09-29
@LegionerRU

emb = discord.Embed(title='1', description=f'{ctx.author.mention}')
emb.set_thumbnail(url=ctx.author.avatar_url)
msg ​​= await ctx.send(embed = emb)
emb = discord.Embed(title='2', description=f'{ctx.author.mention} 1-2-3')
await edit.msg(embed = emb)
PS It seems right, if there are errors, I'll correct them

C
CraazzyyFoxx, 2021-09-28
@CraazzyyFoxx

await message.edit(embed=new_embed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question