The app does not repond

Hello, I'm a new bot developer and I have a problem. At every command, button or what ever I interact with. My bot does what I ask him to do but everytime it write "The app does not respond" (I don't think it's the exact message because my discord is not in english). thanks for your help
15 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna13mo ago
and your code?
Brett
BrettOP13mo ago
const { ChatInputCommandInteraction, SlashCommandBuilder, ActionRowBuilder, StringSelectMenuBuilder } = require('discord.js');
const ExtendedClient = require('../../../class/ExtendedClient');
require('dotenv').config();

module.exports = {
structure: new SlashCommandBuilder()
.setName('createticket')
.setDescription('Create the ticket message'),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction} interaction
*/
run: async (client, interaction) => {
const ticketChannel = interaction.guild.channels.cache.get('1181171950375161897');

await ticketChannel.send({
content: 'Ouvrir un ticket',
components: [
new ActionRowBuilder()
.addComponents(
new StringSelectMenuBuilder()
.setCustomId('select-ticket')
.setPlaceholder('Choisis une catégorie de ticket')
.addOptions(
{ label: '📩 Postuler', value: 'recruitment' },
{ label: '📜 Collaboration', value: 'collaboration' },
{ label: '💬 Question', value: 'question' },
)
)
]
});
}
};
const { ChatInputCommandInteraction, SlashCommandBuilder, ActionRowBuilder, StringSelectMenuBuilder } = require('discord.js');
const ExtendedClient = require('../../../class/ExtendedClient');
require('dotenv').config();

module.exports = {
structure: new SlashCommandBuilder()
.setName('createticket')
.setDescription('Create the ticket message'),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction} interaction
*/
run: async (client, interaction) => {
const ticketChannel = interaction.guild.channels.cache.get('1181171950375161897');

await ticketChannel.send({
content: 'Ouvrir un ticket',
components: [
new ActionRowBuilder()
.addComponents(
new StringSelectMenuBuilder()
.setCustomId('select-ticket')
.setPlaceholder('Choisis une catégorie de ticket')
.addOptions(
{ label: '📩 Postuler', value: 'recruitment' },
{ label: '📜 Collaboration', value: 'collaboration' },
{ label: '💬 Question', value: 'question' },
)
)
]
});
}
};
There is one where the error appear
treble/luna
treble/luna13mo ago
you never reply to the interaction
Brett
BrettOP13mo ago
what do you mean ?
treble/luna
treble/luna13mo ago
you have to reply to the interaction
Brett
BrettOP13mo ago
hooooo
treble/luna
treble/luna13mo ago
Otherwise it will indeed fail
Brett
BrettOP13mo ago
I have to do a interaction.reply ?
treble/luna
treble/luna13mo ago
yes
Brett
BrettOP13mo ago
even if it's ephemeral it works ?
treble/luna
treble/luna13mo ago
yes
Brett
BrettOP13mo ago
Ho good thank you
treble/luna
treble/luna13mo ago
and if you want to stay in this server i would recommend changing your pronouns
Brett
BrettOP13mo ago
ho yes sorry I think that's not my last question so I change that now done it works thank you
Want results from more Discord servers?
Add your server