How to edit embed messages - discord.py
如何编辑
我尝试了
1 | msg.edit(embed = embed) |
但是它只是使用
编辑消息
1 | <discord.embeds.Embed object at 0x000001824D3F5A68> |
要为已给出的消息提供替代答案,您应该能够编辑给定消息的嵌入内容,如下所示:
1 2 3 4 5 6 7 8 9 10 11 12 | from discord import Embed ... first_embed = Embed(title='embed 1') new_embed = Embed(title='embed 2') # send a first message with an embed msg = await ctx.send(embed=first_embed) # edit the embed of the message await msg.edit(embed=new_embed) |