materwelon
materwelon
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by materwelon on 8/1/2024 in #djs-questions
Message vs InteractionResponse IDs
Update 1 I tried to replace res.id with this.event.id (this.event is the interaction) and then use .has(this.event.id); instead. No luck. maybe I'm not getting any IDs because code 1's reply doesnt have an embed? I don't think that's how it works though... Update 2 I fixed the issue by using deferReply and editReply in code 1. I still don't know what the problem is or why the IDs for the reply are different if I edit it. Update 3 So .reply returns an InteractionResponse and .editReply returns a Message. Makes sense why the IDs would be different. Learned that .deferReply returns InteractionResponse. that also has an ID. If I were to use the if for that, how can I retrieve it in Code 3? I know it won't be the ID of the ModalSubmitInteraction. and neither will it be the ID of Message.
5 replies