You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to update the image in an embed. The behaviour I'm seeing is not what I was expecting, please see MVP down below.
When executing the component via the button click it calls InteractionRespond with InteractionResponseUpdateMessage. In this update I assign a new Files array with a new image. I also update the included Embed. I expected this to delete the previous image and load the new one. But what actually happens is it updates the embed but leaves the attached image hanging, please see the screenshot.
Hi,
I am trying to update the image in an embed. The behaviour I'm seeing is not what I was expecting, please see MVP down below.
When executing the component via the button click it calls InteractionRespond with InteractionResponseUpdateMessage. In this update I assign a new Files array with a new image. I also update the included Embed. I expected this to delete the previous image and load the new one. But what actually happens is it updates the embed but leaves the attached image hanging, please see the screenshot.
This looks good
![Screenshot 2024-04-22 223022](https://private-user-images.githubusercontent.com/25744229/324602962-84886569-b292-400e-8704-928816c6b9bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDMyNTMsIm5iZiI6MTcyNjE0Mjk1MywicGF0aCI6Ii8yNTc0NDIyOS8zMjQ2MDI5NjItODQ4ODY1NjktYjI5Mi00MDBlLTg3MDQtOTI4ODE2YzZiOWJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyMDkxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxNjE1ZWQzZTg0NmExZjc3NjkwMWY1ZTNhZDdiYmFiOGU5MTU5NGNhYTcwNmJjYTFlNDA5MGJmMTc3N2NlZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XnKInsUXxAayE5UhEQcpHXdmI_kFD38pnfYkn-f99ck)
Here the old map stays put and is being rendered outside of its embed?
![Screenshot 2024-04-22 223036](https://private-user-images.githubusercontent.com/25744229/324602981-4eccf907-ce23-4c2a-a760-0270f117a860.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDMyNTMsIm5iZiI6MTcyNjE0Mjk1MywicGF0aCI6Ii8yNTc0NDIyOS8zMjQ2MDI5ODEtNGVjY2Y5MDctY2UyMy00YzJhLWE3NjAtMDI3MGYxMTdhODYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyMDkxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjZjIzNTIxOWUzNzE4Mzg5ODhmNTJiM2JmMThlMmM4OGMwZWI0ZDY2ODZkZTFiMzEwNWRiZjJkZTVlNDk4YTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IiCtT4wnwm7bdVCn3ZGdvzSrhX88id70vjbG4c_cbnA)
What is going on here? Am I handling this scenario correctly or is there a better way?
Thanks
The text was updated successfully, but these errors were encountered: