【发布时间】:2021-02-21 19:43:44
【问题描述】:
我正在尝试从现有消息中修改嵌入,如何从消息中删除或删除时间戳
@commands.command()
async def remove_timestamp(self, ctx, msg: discord.MessageConverter):
embed = msg.embeds[0]
embed.timestamp = None #error raised here
await msg.edit(embed=embed)
当我尝试更新嵌入的颜色或更改时间戳时,类似的代码有效,但删除时间戳会引发错误
【问题讨论】:
标签: python discord discord.py