how do I handle modalsubmits in typescript?

even if I use a collector, it wont work
4 Replies
d.js toolkit
d.js toolkit17mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
ciriustar
ciriustarOP17mo ago
using client.on('interactionCreate is also not practical inside the command since the event would be called every time the command is ran
Syjalo
Syjalo17mo ago
Modal isn't a message component so you can't use MessageComponentCollector. Use interaction.awaitModalSubmit()
ciriustar
ciriustarOP17mo ago
thanks
Want results from more Discord servers?
Add your server