how do I handle modalsubmits in typescript?
even if I use a collector, it wont work

4 Replies
⢠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.using client.on('interactionCreate is also not practical inside the command since the event would be called every time the command is ran
Modal isn't a message component so you can't use MessageComponentCollector.
Use
interaction.awaitModalSubmit()thanks