Tom
Tom
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
if anyone else has ideas, it would be much appreciated
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
i didn't, but i added them just now and same result
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
could it be a permission issue or does that not make sense?
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
just seems like nothing comes down the pipe at all when i hit submit in the modal
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
console.log("A");
await buttonsInteraction
.awaitModalSubmit({ time: 60_000 })
.then((interaction) => {
console.log("B");
console.log(`${interaction.customId} was submitted!`);

interaction.reply({ content: "replied!" });
})
.catch(console.error);
console.log("A");
await buttonsInteraction
.awaitModalSubmit({ time: 60_000 })
.then((interaction) => {
console.log("B");
console.log(`${interaction.customId} was submitted!`);

interaction.reply({ content: "replied!" });
})
.catch(console.error);
my terminal says "A" then the modal shows, i submit the modal and it shows the error message i mentioned in the topic, and "B" is not in my terminal
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
it never makes it in there
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
where would the reply() go? inside of the Events.InteractionCreate handler? becuase I'm not even seeing that code run
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
i think using interaction in both places should be ok. It's scoped inside that Events.InteractionCreate listener -- right?
15 replies
DIAdiscord.js - Imagine an app
Created by Tom on 5/13/2024 in #djs-questions
Issue with Modal -- "Something went wrong. Try again."
oh i see -- how do i acknowlege the modal interaction? I'll go snooping in the docs again
15 replies