materwelon
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by materwelon on 8/1/2024 in #djs-questions
Message vs InteractionResponse IDs
I'm setting the reply ID as a key in Code 1. edit that reply in code 2. and then try to find the key in the Map in code three. The same code works for a different flow that doesn't have the Code 2 step and has
deferReply
and editReply
instead of reply
. Is the ID of the message somehow changing after editReply
? Because that doesn't make sense to me. Or what exactly is happening. How can I get the ID of the reply in code 1 in code 3? FYI, Code 3 is a ModalSubmitInteraction
, Code 2 is a UserSelectMenuInteraction
and Code 1 is a ChatInputCommandInteraction
.
Code 1
Code 2
Code 3
Logs
5 replies