#discord modals
3 messages · Page 1 of 1 (latest)
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
Use followUp instead of reply in the catch