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 toolkit8mo 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
astro8mo ago
where is the first bit of code located
Time
TimeOP8mo 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
astro8mo 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
TimeOP8mo ago
i mean console.log("Interactions") is printed but not console.log("Interactions", interaction)
TÆMBØ
TÆMBØ8mo ago
Is your bot actually online when you try to instantiate an interaction with it?
Time
TimeOP8mo ago
yes
TÆMBØ
TÆMBØ8mo ago
Did you specify an interactions endpoint in the dev portal for it?
Time
TimeOP8mo ago
what do you mean with this
TÆMBØ
TÆMBØ8mo ago
No description
Time
TimeOP8mo 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