how do I handle modalsubmits in typescript?

even if I use a collector, it wont work
4 Replies
d.js toolkit
d.js toolkit2y 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
ciriustarOP2y 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
Syjalo2y ago
Modal isn't a message component so you can't use MessageComponentCollector. Use interaction.awaitModalSubmit()
ciriustar
ciriustarOP2y ago
thanks

Did you find this page helpful?