DISCORD BUTTON
can you help me with my code its always say
No command matching undefined was found.No command matching undefined was found. try {
//await appendToSheet(auth, spreadsheetId, sheetName, newRow);
var ares = await modalInteraction.reply({
content: 'test',
components: [row],
ephemeral: false,
});
} catch (error) {
console.error(error);
modalInteraction.reply('Terjadi kesalahan saat mengajukan laporan.');
}
const collectorFilter = i => i.user.id === interaction.user.id;
try {
const confirmation = await ares.awaitMessageComponent({ filter: collectorFilter, time: 60_000 });
if (confirmation.customId === 'apv') {
await modalInteraction.reply({ content: `has been banned for reason:`});
}
} catch (e) {
await modalInteraction.editReply({ content: 'Confirmation not received within 1 minute, cancelling'});
}; try {
//await appendToSheet(auth, spreadsheetId, sheetName, newRow);
var ares = await modalInteraction.reply({
content: 'test',
components: [row],
ephemeral: false,
});
} catch (error) {
console.error(error);
modalInteraction.reply('Terjadi kesalahan saat mengajukan laporan.');
}
const collectorFilter = i => i.user.id === interaction.user.id;
try {
const confirmation = await ares.awaitMessageComponent({ filter: collectorFilter, time: 60_000 });
if (confirmation.customId === 'apv') {
await modalInteraction.reply({ content: `has been banned for reason:`});
}
} catch (e) {
await modalInteraction.editReply({ content: 'Confirmation not received within 1 minute, cancelling'});
};