Discord Error Code 10015 when using a collector to handle button events
Hello! I am working on a bot Im on the development team with and I dont know how to fix this issue. It is showing a "Unknown Webhook" error and Im not even mentioning a webhook. Im just using embeds and buttons. Does anyone know the answer to this?
19 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!20.10.0 for node -v
[email protected]
Interactions are webhook-based internally
Use your stack trace to figure out which specific line of code is throwing the error
e.g., if it's
fetchReply()
, then it's likely that you have yet to reply to the interaction so there's nothing to fetchCould I possibly get a code snippet? I have put await from
interaction.fetchReply()
to interaction.reply(...)
and it still isnt working
I can’t right now will in a little
@Qjuhthat is a completely different error than Unknown Webhook
It was my origional error
Thats what its showing now
reply
is neither a Message nor TextBasedChannel instanceI have it to a variable that awaits interaction.fetchReply
you misspelled
component
as componenet
I have a variable
Thx one sec
@Squid Still not working
Is this the exact line of code on
index.js
line 411?
411 through 414
Mb
Wrong lines
You need to resolve the Promise with
await
So should I add that to
You should add it to essentially every function that returns a Promise
especially if you assign a variable to a Promise's resolved return value
@Squid This is the whole line of code
Hi
Also you have defined your reply twice
There's no need to fetch the reply when you already have the reply saved in a variable
Tyyyy