vedel
vedel
DIAdiscord.js - Imagine an app
Created by vedel on 1/23/2024 in #djs-questions
How to edit the inital reply after ModalSubmitInteraction?
Unfortunately I wasn't able to figure it out. For now I will keep it the ugly way.
8 replies
DIAdiscord.js - Imagine an app
Created by vedel on 1/23/2024 in #djs-questions
How to edit the inital reply after ModalSubmitInteraction?
In the typescript definition it appears not to exist. The closest (by name atleast) is deferedUpdate.
8 replies
DIAdiscord.js - Imagine an app
Created by vedel on 1/23/2024 in #djs-questions
How to edit the inital reply after ModalSubmitInteraction?
This seams to work:
await interaction.deferUpdate({ fetchReply: true });
await interaction.editReply({ embeds: [embed], components: [] });
await interaction.deferUpdate({ fetchReply: true });
await interaction.editReply({ embeds: [embed], components: [] });
Please let me know if this is bad practise or not 🙂
8 replies