Getting values from a Modal and then use it on an Embed
Trying to get thee values but not working!
29 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.whats not working about it
im trying to get that values from a Modal and then use it on and embed. When I submit it doesn't do nothing
show the whole event, not part of it
are you even sending the embed
yep
here is the code https://sourceb.in/3Ree9QiSNV
you have to place the modal interaction part in your interactionCreate event
like do 2 files
the command and the the event
you should already have the event somewhere
otherwise this whole file is obsolete
obsolete why?
cuz it wouldnt execute without the
ohh yeah im fixing it, sorry 😦
How can I get the custom id of the modal
interaction.customId
its always the same for modals and buttons, etc..
Now it appears other problem
if you wouldnt hide half the error one could help you
one of the fields has no value
all 4 have a value
evidentially, no
log them
ohh it should be the not required one
yeah im doing it, thanks
same error umm
I have to convert it to a String?
or you mean on the const
it works all but the last one nop
all its correct but the last one its not required
im doing a screenshot of the modal to show you
ohh okay 1 sec
should be short?
https://sourceb.in/pJ1aL30o78
it set it the max to 256
okey
yeah it was that!
thanks for your help!