TypeError Cannot read properties of undefined (reading 'getTextInputValue')

Hey there! I'm currently trying to create a Modal which I can fill information into to set my bot's changelog, I've followed everything as mentioned by the discord.js guide, yet I am getting the error, I have added the arguments into my interactionCreate.js file, awaited the showModal() and what not, here is my code:
8 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
vance_
vance_2y ago
SourceBin
newchangelog.js
Instantly share your code with the world.
vance_
vance_2y ago
My error is described in the title
Parogo_72
Parogo_722y ago
interaction.fields isnt a thing for commandInteractions
vance_
vance_2y ago
In the guide, its written as that
vance_
vance_2y ago
Parogo_72
Parogo_722y ago
interaction being a modalInteraction Not the slashcommand
vance_
vance_2y ago
So, I'm doing all this in my SlashCommand, how do I convert it to a modalInteraction Do I need to do it in my interactionCreate event?
Want results from more Discord servers?
Add your server
More Posts