#Verify Modal

17 messages · Page 1 of 1 (latest)

uneven mist
#

Hey i have a problem i want to create a verify command with a modal my problem is i dont can send this modal

woven nightBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
uneven mist
edgy frigate
#

What happens when you try to send it?

uneven mist
edgy frigate
#

A modal is not a message component

#

Wrong type of collector

normal hingeBOT
#

guide Other Interactions: Modals - Receiving modal submissions
read more

uneven mist
#

Does that mean I can't use a collector for a modal at all?

edgy frigate
#

You cant use a MessageComponentCollector because they arent message components

#

You can use an InteractionCollector

ornate fern
normal hingeBOT
normal hingeBOT
#

Documentation suggestion for @uneven mist:
method CommandInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.

ornate fern
#

just the same

uneven mist
#

did that mean i need to change this place: const collector = interaction.channel.createMessageComponentCollector({ filter, time: 15000 });