application did not respond

Hey do somebody know why this is not working? i have a:
client.on(Events.InteractionCreate, async (interaction) => {
console.log("Interaction", interaction);
if (!interaction.isCommand()) return;
await interaction.deferReply();
});
client.on(Events.InteractionCreate, async (interaction) => {
console.log("Interaction", interaction);
if (!interaction.isCommand()) return;
await interaction.deferReply();
});
but if i try to execute the command i get: the application did not respond without any console.log or something My Intents:
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildIntegrations,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildIntegrations,
Discord JS Version: 14.14.1 Node Version: v21.7.1
11 Replies
d.js toolkit
d.js toolkit•6mo 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 OP
astro
astro•6mo ago
where is the first bit of code located
Time
Time•6mo ago
async function run() {
client.login(process.env["BOT_TOKEN"]);
// moduleManager.listenCommands();
moduleManager.listenError();
client.once(Events.ClientReady, () => {
moduleManager.load();
});
console.log("Interactions");
client.on(Events.InteractionCreate, async (interaction) => {
console.log("Interaction", interaction);
if (!interaction.isCommand()) return;
await interaction.deferReply();
});
}
async function run() {
client.login(process.env["BOT_TOKEN"]);
// moduleManager.listenCommands();
moduleManager.listenError();
client.once(Events.ClientReady, () => {
moduleManager.load();
});
console.log("Interactions");
client.on(Events.InteractionCreate, async (interaction) => {
console.log("Interaction", interaction);
if (!interaction.isCommand()) return;
await interaction.deferReply();
});
}
console.log("Interactions") is printed
astro
astro•6mo ago
i mean... yeah.. you're doing deferReply() but aren't resolving that in any way unless you're doing that in your command's file, and if so that's outside the scope of my knowledge capacity atm
Time
Time•6mo ago
i mean console.log("Interactions") is printed but not console.log("Interactions", interaction)
TÆMBØØ
TÆMBØØ•6mo ago
Is your bot actually online when you try to instantiate an interaction with it?
Time
Time•6mo ago
yes
TÆMBØØ
TÆMBØØ•6mo ago
Did you specify an interactions endpoint in the dev portal for it?
Time
Time•6mo ago
what do you mean with this
TÆMBØØ
TÆMBØØ•6mo ago
No description
Time
Time•6mo ago
yes ... thank youuuuu so much i would never ever find this why did i do this?
Want results from more Discord servers?
Add your server