Slash command working but still replying with "The application did not respond"
the command works but before its sent it responds with "The application did not respond".
40 Replies
- 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!you want to send embed with slash commands?
no the embed is sending
but
interaction.channel.send is not a reply
it just says that
you need to reply
when i reply it doesnt work
it pushes an error
DiscordAPIError[10062]: Unknown interaction
this one
that usually means you didn’t reply in time
Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds ➞ defer the response *.
- Wrong interaction object inside a collector.
- Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
* Note: you cannot defer modal or autocomplete value responsesso what do i do then
if i change it to that the embed doesnt send
and i keep it like this and it says "The application did not respond"
you want the app to send embed messages?
yeah
its sending the embed tho
its just the "The application did not respond"
interaction.reply
ive already tried that
await interaction.reply
then the cmd doesnt work
you can defer it
Slash Commands: Command response methods - Deferred responses
In this case, you can make use of the ChatInputCommandInteraction#deferReply() method, which triggers the <application> is thinking... message. This also acts as the initial response, to confirm to Discord that the interaction was received successfully and gives you a 15-minute timeframe to your...
read more
wis try this code for an embed
this also gives you an option
for description and title
didnt work
now the embed doesnt even send
please dont spoonfeed code
doesnt work to begin with
because this code has 0 relation to your issue
you have to defer the reply, as you were told
i have
anything else?
and does it work
no
it doesnt
and what error do you get, what works, what doesnt, wahts your updated code
interaction.deferUpdate(); right?
there is no such function on a chatinput interaction
please read
He said he wanted to send embed with slash commands
So I send the code bro
read #how-to-get-help
the code you showed has nothing to do with their issue
dont just blindly read a forum title
and dont spoonfeed
.
Ok bro I was just helping
you still dont need to spoonfeed
and actually help them with their actual issue
defer reply should work
I had the same issue some time back
just send a reply saying "loading" and then after you have completed the calculations edit the reply with the embed
Or just use interaction.deleteReply(); instead of editing the reply