NoodleSTART
NoodleSTART
DIAdiscord.js - Imagine an app
Created by NoodleSTART on 1/19/2024 in #djs-questions
Has the embed attachment been changed?
No description
3 replies
DIAdiscord.js - Imagine an app
Created by NoodleSTART on 10/5/2023 in #djs-questions
DISCORD BUTTON
can you help me with my code its always say 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'});
};
6 replies