The application did not respond.

When I use the command it says "The application did not respond", I get no errors.
const { Client , Message, MessageEmbed, CommandInteraction, MessageActionRow, MessageButton } = require('discord.js')


const noblox = require('noblox.js')
const { Group_ID} = require('../config.json')
const { SlashCommandBuilder, EmbedBuilder } = require('@discordjs/builders')



module.exports = {

name: 'Promote',
description: 'Promotes a member in the group',
data : new SlashCommandBuilder()
.setName('promote')
.setDescription('Promotes a player')

.addStringOption(option =>
option.setName('username')
.setDescription('User to promote').setRequired(true)),





/**
*
* @param {Client} bot
* @param {Message} message
* @param {*} args
*/


async execute(bot , message, args) {



message.reply({ embeds: [embed] })

},

/**
*
* @param {Client} bot
* @param {CommandInteraction} interaction
*/

async slashexecute(bot , interaction) {

return console.log(interaction.commandId)

const username = interaction.options.getString('username')

await interaction.deferReply({ ephemeral: true})

try {
const id = await noblox.getIdFromUsername(username)
noblox.promote(Group_ID, id)
interaction.editReply({content : `Successfully Promoted **${username}**`})
} catch (error) {
interaction.editReply({content:error.message })
}

},
}
const { Client , Message, MessageEmbed, CommandInteraction, MessageActionRow, MessageButton } = require('discord.js')


const noblox = require('noblox.js')
const { Group_ID} = require('../config.json')
const { SlashCommandBuilder, EmbedBuilder } = require('@discordjs/builders')



module.exports = {

name: 'Promote',
description: 'Promotes a member in the group',
data : new SlashCommandBuilder()
.setName('promote')
.setDescription('Promotes a player')

.addStringOption(option =>
option.setName('username')
.setDescription('User to promote').setRequired(true)),





/**
*
* @param {Client} bot
* @param {Message} message
* @param {*} args
*/


async execute(bot , message, args) {



message.reply({ embeds: [embed] })

},

/**
*
* @param {Client} bot
* @param {CommandInteraction} interaction
*/

async slashexecute(bot , interaction) {

return console.log(interaction.commandId)

const username = interaction.options.getString('username')

await interaction.deferReply({ ephemeral: true})

try {
const id = await noblox.getIdFromUsername(username)
noblox.promote(Group_ID, id)
interaction.editReply({content : `Successfully Promoted **${username}**`})
} catch (error) {
interaction.editReply({content:error.message })
}

},
}
5 Replies
d.js toolkit
d.js toolkit4mo 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!
Stiefanek
StiefanekOP4mo ago
Node: 20.17.0 Discord.js = 14.15.3
Stiefanek
StiefanekOP4mo ago
nothing else.
No description
Stiefanek
StiefanekOP4mo ago
And it's my normal logs.
Fede
Fede4mo ago
Did you run your bot Nvm But yeah the return Makes it ignore the interaction.deferReplu Remove the return Keep the console.log if u want
Want results from more Discord servers?
Add your server