MrRober
MrRober
DIAdiscord.js - Imagine an app
Created by MrRober on 10/28/2023 in #djs-questions
Get Original message or interaction by id
Hello I want to get the originalMeesage or interaction by id, What can i do it?
10 replies
DIAdiscord.js - Imagine an app
Created by MrRober on 7/6/2023 in #djs-questions
Help width interactions
Hello I have this code in slash conmmand, when I try to interact outside the if works perfectly but if y try into the if give me an error:
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at StringSelectMenuInteraction.reply (C:\Users\Rober\Desktop\BotLocal\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:102:46)
at Client.<anonymous> (C:\Users\Rober\Desktop\BotLocal\src\commands\ticket\order2.js:47:29)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'InteractionAlreadyReplied'
}
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at StringSelectMenuInteraction.reply (C:\Users\Rober\Desktop\BotLocal\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:102:46)
at Client.<anonymous> (C:\Users\Rober\Desktop\BotLocal\src\commands\ticket\order2.js:47:29)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'InteractionAlreadyReplied'
}
Code:
const StartOrder = new ButtonBuilder()
.setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle(ButtonStyle.Success);

const row = new ActionRowBuilder()
.addComponents(StartOrder);



await interaction.reply({
components: [row],
});


client.on('interactionCreate',async interac => {


interaction.editReply({ content: 'Response', components: [] })
await Start.StartOrderCode(interac);



if (interac.customId === 'Service') {

interac.reply("Res");
}

});
const StartOrder = new ButtonBuilder()
.setCustomId('confirm')
.setLabel('Confirm Ban')
.setStyle(ButtonStyle.Success);

const row = new ActionRowBuilder()
.addComponents(StartOrder);



await interaction.reply({
components: [row],
});


client.on('interactionCreate',async interac => {


interaction.editReply({ content: 'Response', components: [] })
await Start.StartOrderCode(interac);



if (interac.customId === 'Service') {

interac.reply("Res");
}

});
9 replies
DIAdiscord.js - Imagine an app
Created by MrRober on 7/2/2023 in #djs-questions
Help with command!
Hello good afternoon, I ask you as a favor if you can help me since I have been trying to make a command for more than 1 week. The command consists of a button that sends an embed and a select menu and as you select things the embed and the select menu are updated to continue choosing
10 replies
DIAdiscord.js - Imagine an app
Created by MrRober on 6/29/2023 in #djs-questions
Button that sends a form and a select menu that are updated does not work
Hello, I have a problem, I am creating a command that when pressing a button sends an embed and a menuselect and when choosing an option it updates the embed and the select menu to choose a few more times, the thing is that it gives me an "Interaction has already been acknowledged." and I do not know what to do.
8 replies