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

https://pastebin.com/a6HWfGiH
TypeError: Cannot read properties of undefined (reading 'getTextInputValue')
at Object.execute (/Users/oerston25/Desktop/test-bot/commands/modal.js:62:51)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.<anonymous> (/Users/oerston25/Desktop/test-bot/index.js:73:5)
node:events:491
TypeError: Cannot read properties of undefined (reading 'getTextInputValue')
at Object.execute (/Users/oerston25/Desktop/test-bot/commands/modal.js:62:51)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.<anonymous> (/Users/oerston25/Desktop/test-bot/index.js:73:5)
node:events:491
throw er; // Unhandled 'error' event
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ChatInputCommandInteraction.reply (/Users/oerston25/Desktop/test-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:102:46)
at Client.<anonymous> (/Users/oerston25/Desktop/test-bot/index.js:76:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
code: 'InteractionAlreadyReplied'
throw er; // Unhandled 'error' event
^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ChatInputCommandInteraction.reply (/Users/oerston25/Desktop/test-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:102:46)
at Client.<anonymous> (/Users/oerston25/Desktop/test-bot/index.js:76:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
code: 'InteractionAlreadyReplied'
Pastebin
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, Events...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
10 Replies
Unknown User
Unknown Userā€¢2y ago
Message Not Public
Sign In & Join Server To View
Baconburger998
Baconburger998ā€¢2y ago
discord.js@14.7.0 v18.12.1
Syjalo
Syjaloā€¢2y ago
Your interaction is not a ModalSubmitInteraction You can get it for example with a collector
d.js docs
d.js docsā€¢2y ago
method ChatInputCommandInteraction#awaitModalSubmit() Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
Baconburger998
Baconburger998ā€¢2y ago
wdym i already have a filter
Syjalo
Syjaloā€¢2y ago
šŸŸ„ Here your interaction is slash command interaction šŸŸ© But your modal interaction is here You can't get fields from slash command interaction.
Syjalo
Syjaloā€¢2y ago
If you didn't understand this you should learn some JavaScript #rules 2
Baconburger998
Baconburger998ā€¢2y ago
why would i need a collector tho
Syjalo
Syjaloā€¢2y ago
To get the modal interaction
Baconburger998
Baconburger998ā€¢2y ago
Ok, but I don't understand where I put the collector