[SOLVED] TypeError (intermediate value).setCustomId(...).setTitle is not a function
Where is the creation guide, v14 broke my modals
Last time I checked, this was the correct way to make modals-
16 Replies
inputs dont have titles
they have a label
that was my re-write but earlier with label, I had the same prob
are you sure?
setTitle on modal. setLabel on input
Alright here I changed it:
TypeError: (intermediate value).setCustomId(...).setLabel(...).setDescription is not a function
okay cool, so a new error
They also dont have descriptions
.setPlaceholder()
?I'll try getting my original code
which worked before v14
I just added description and title by accident cuz it suggested in vscode for some reason
VSC literally guessed based on stuff you've written before in JavaScript
with embeds
it had embed options
Ok, actually I have a theory it must be setDefaultValue
yea it is:
TypeError: (intermediate value).setCustomId(...).setLabel(...).setDefaultValue is not a function
I saw it was .setValue but that didn't work when I tried it with discord-modalsWell it is now
ah, thanks
It's setValue in discord.js
Also for future reference, is there and doc on modal creation?
that has all these features
like the modal one
Yea I saw that but it doesn't have all the options I assume, because it doesn't mention .setMax/Min and .setValue
Anyways, thanks 🙏