#discord modals

3 messages · Page 1 of 1 (latest)

open rose
#

• 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.

#

i am trying to show a modal to a user and time limit to reply in that modals is 5000(let it)

i used this code

await interaction.showModal(reportmodal)
let reportissued = await interaction.awaitModalSubmit({ time: 5000 })

if user replied the its good but
if user doesn't replied then it says this

collector recieved no interaction... with reason : time

for this i used this code

await interaction.showModal(reportmodal)
let reportissued = await interaction.awaitModalSubmit({ time: 5000 }).catch((err) => {
    interaction.reply({
      content....
    })
})

still it wont fix it

mighty portal