#Hello
1 messages · Page 1 of 1 (latest)
you need to create the collector on the Message object
the message where the components are
So I'll change it ```js
const collector = interaction.channel.createMessageComponentCollector({filter}) //({ filter, time: 15000 });
to this
```js
const collector = interaction.message.createMessageComponentCollector({filter}) //({ filter, time: 15000 });
?
const message = await interaction.reply({ embeds: [embed], components: [row] });
const collector = message.createMessageComponentCollector({ filter });
Ohh okey
So the code gives this but I still get an error: <rejected> DiscordAPIError[10062]: Unknown interaction
Please
can you show the full error
<rejected> DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async StringSelectMenuInteraction.update (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:233:5)
at async InteractionCollector.<anonymous> (/home/container/commands-slash/base/help.js:129:13) {
requestBody: { files: [], json: [Object] },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1098220439123271731/aW50ZXJhY3Rpb246MTA5ODIyMDQzOTEyMzI3MTczMTpWcXRReXRnTEtsRUNuYlczOVZ1VVFkSDY1aTdBMHdCWlprMHliRDlUUGVWSjRlbkgzeWFsaGNpMHpoV2VtQXBuUXNsMzkzNEJrYVl5N2Q1emEzY2FUdXFwcndobXNmRFdYM3NMZ3pkU1pEa2pFbncycVAyZloyU0NaajJrbmpmVw/callback'
}
} raison DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async StringSelectMenuInteraction.update (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:233:5)
at async InteractionCollector.<anonymous> (/home/container/commands-slash/base/help.js:129:13) {
requestBody: { files: [], json: { type: 7, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1098220439123271731/aW50ZXJhY3Rpb246MTA5ODIyMDQzOTEyMzI3MTczMTpWcXRReXRnTEtsRUNuYlczOVZ1VVFkSDY1aTdBMHdCWlprMHliRDlUUGVWSjRlbkgzeWFsaGNpMHpoV2VtQXBuUXNsMzkzNEJrYVl5N2Q1emEzY2FUdXFwcndobXNmRFdYM3NMZ3pkU1pEa2pFbncycVAyZloyU0NaajJrbmpmVw/callback'
}```
Yet the embed is changing well