Martoz
Martoz
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
DiscordAPIError[40060]: Interaction has already been acknowledged
DiscordAPIError[40060]: Interaction has already been acknowledged
const collector = user.dmChannel.createMessageComponentCollector({ filter, time: 60000 });
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
I'll try it right now
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
?
client.on('interactionCreate', async (interaction) => {
try {
if (interaction.isChatInputCommand()) {
await handleCommandInteraction(interaction);
} else if (interaction.isButton()) {
if (interaction.replied || interaction.deferred) {
console.log('Button interaction already acknowledged.');
return;
}
buttonHandlers.handleButtonInteraction(interaction);
} else if (interaction.isModalSubmit()) {
if (interaction.replied || interaction.deferred) {
console.log('Modal interaction already acknowledged.');
return;
}
const { handleModalSubmit } = require('./core/commands/VerifySystem');
await handleModalSubmit(interaction);
}
} catch (error) {
console.error('Error during interaction:', error);
}
});
client.on('interactionCreate', async (interaction) => {
try {
if (interaction.isChatInputCommand()) {
await handleCommandInteraction(interaction);
} else if (interaction.isButton()) {
if (interaction.replied || interaction.deferred) {
console.log('Button interaction already acknowledged.');
return;
}
buttonHandlers.handleButtonInteraction(interaction);
} else if (interaction.isModalSubmit()) {
if (interaction.replied || interaction.deferred) {
console.log('Modal interaction already acknowledged.');
return;
}
const { handleModalSubmit } = require('./core/commands/VerifySystem');
await handleModalSubmit(interaction);
}
} catch (error) {
console.error('Error during interaction:', error);
}
});
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
DiscordAPIError[40060]: Interaction has already been acknowledged.
DiscordAPIError[40060]: Interaction has already been acknowledged.
it comes out when I check that if the user did not enter the captcha correctly, he sent a new one, yes, he sends everything works, but when I click on the button on the new captcha, an error pops out, and so everything works. It's just that this mistake is bothering me.
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
infinity
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 12/15/2024 in #djs-questions
error modal
No description
18 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
ye
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
But I didn't touch the code, reinstalled Windows yesterday, saved the code, did everything, and here comes this error
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
console.log(process.env.TokenBot)
client.login(process.env.TokenBot);
console.log(process.env.TokenBot)
client.login(process.env.TokenBot);
it doesn't output anything
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
?
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
do you know how to fix it?
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
is it convenient to view it like this?
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
Yes, I tried inserting the token into clietn.login(), but it didn't help
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
require('dotenv').config();
require('dotenv').config();
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/19/2024 in #djs-questions
An invalid token was provided.
client.login(process.env.TokenBot);
client.login(process.env.TokenBot);
27 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/10/2024 in #djs-questions
This interaction failed
const createCloseButtonRow = () => {
return new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('close_ticket')
.setLabel('Close')
.setStyle('DANGER')
);
};
const createCloseButtonRow = () => {
return new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('close_ticket')
.setLabel('Close')
.setStyle('DANGER')
);
};
7 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 5/10/2024 in #djs-questions
This interaction failed
collector.on('collect', async (interaction) => {
if (interaction.customId === 'create_ticket') {
await handleCreateTicketButtonClick(interaction, ticketChannel);
} else if (interaction.customId === 'close_ticket') {
await handleTicketCloseButtonClick(interaction, ticketChannel);
}
});
collector.on('collect', async (interaction) => {
if (interaction.customId === 'create_ticket') {
await handleCreateTicketButtonClick(interaction, ticketChannel);
} else if (interaction.customId === 'close_ticket') {
await handleTicketCloseButtonClick(interaction, ticketChannel);
}
});
7 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 4/15/2024 in #djs-questions
pls help fix error
16 replies
DIdiscord.js - Imagine ❄
Created by Martoz on 4/15/2024 in #djs-questions
pls help fix error
it doesn't work for me ( it gives an error
16 replies