Why is there an error message even though the interaction is successful is working in discord.py?

I have created a !work command where the buttons help in navigating through pages. Each time a button is clicked, the embed is edited to the required page. I am getting an error message saying that the interaction failed even though the embed was edited properly. How do I fix this?

The code for editing the embed is here:

await interaction.message.edit(embed=new_embed)


from Recent Questions - Stack Overflow https://ift.tt/3kQCyWv
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept