thaferra
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
solved using a customid, ty so much, have a great day
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
there's nothing about it
if someone wanna check, here's the code:
https://sourceb.in/yg3Ch0EQ9L
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
tomorrow i'll check and i let you know
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
but I think it refers to another selectmenu that I have
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
but you know what? in reality I wasn't trying to add a role when someone opens a ticket, but to add the possibility for people with the "staffRoleID" role to be able to see the newly created channel, as well as tickets
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 9/4/2024 in #djs-questions
Issue by opening a ticket
the funny thing is that I get the same error with all options, so I don't understand what I should fix
18 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
resolved, ty so much
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
select menus, modal, and button work at least
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
How do I put it all together?
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
then I wouldn't know what to do
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Can't find the problem
https://sourceb.in/scPmb8Rjyn
//
Errore durante l'esecuzione del comando: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:835:23)
at async _REST.request (/home/container/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:1278:22)
at async ChatInputCommandInteraction.deferReply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:71:5)
at async Client.<anonymous> (/home/container/index.js:497:7) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1279075172766453851/aW50ZXJhY3Rpb246MTI3OTA3NTE3Mjc2NjQ1Mzg1MTpQbENIVWpHWHdNanNZYTNZQ1hHNk45akx1dTE3MG52ejlxdlNRQnppQjdkMjBtd2tnbU1hNGtwUExWa3FHYzFHWDFOTGtIMG13OEpqRm5lRkNwTlM0QlBlVTdvZ3Btelh0YzgwdDkzNWI0SG16U1lheTRlZzRaZGhVMkZkd1ZQZg/callback'
}
node:events:491
throw er; // Unhandled 'error' event
^
Error [InteractionNotReplied]: The reply to this interaction has not been sent or deferred.
at ChatInputCommandInteraction.followUp (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:187:64)
at Client.<anonymous> (/home/container/index.js:502:27)
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: 'InteractionNotReplied'
}
now i have this other problem
17 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/29/2024 in #djs-questions
Anonymous Messages
you're right..problem solved
4 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/25/2024 in #djs-questions
Application doesn't respond
everything works
7 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/25/2024 in #djs-questions
Application doesn't respond
i'll try and let you know
7 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/25/2024 in #djs-questions
Application doesn't respond
cause I thought it was there, but apparently while I was working on it I must have modified or deleted it, I don't remember
7 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 8/25/2024 in #djs-questions
Application doesn't respond
client.on('interactionCreate', async interaction => {
if (interaction.isCommand()) {
const command = client.commands.get(interaction.commandName);
if (!command) return;
try {
await command.execute(interaction);
} catch (error) {
console.error('Errore durante l'esecuzione del comando:', error);
await interaction.reply({ content: 'Si è verificato un errore durante l'esecuzione del comando.', ephemeral: true });
}
}
// Gestione dei menu a tendina
else if (interaction.isStringSelectMenu()) {
// (qui va il tuo codice per i menu a tendina)
}
// Gestione dei pulsanti
else if (interaction.isButton()) {
if (interaction.customId === 'close_ticket') {
const ticketChannel = interaction.channel;
try {
await ticketChannel.delete();
delete activeTickets[interaction.user.id];
} catch (error) {
console.error('Errore durante la chiusura del ticket:', error);
await interaction.reply({ content: 'Si è verificato un errore durante la chiusura del ticket.', ephemeral: true });
}
}
}
});
/////
else if (interaction.isButton()) {
if (interaction.customId === 'close_ticket') {
const ticketChannel = interaction.channel;
try {
await ticketChannel.delete();
delete activeTickets[interaction.user.id];
} catch (error) {
console.error('Errore durante la chiusura del ticket:', error);
await interaction.reply({ content: 'Si è verificato un errore durante la chiusura del ticket.', ephemeral: true });
}
}
}
like this?
7 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 5/13/2024 in #djs-questions
"The application is not responding"
I still have the same problem (I updated what I did in the sourcebin).
Did I make the wrong .js to edit?
15 replies
DIAdiscord.js - Imagine a bot
•Created by thaferra on 5/13/2024 in #djs-questions
"The application is not responding"
.
15 replies