I got two errors when I execute deferReply method.
I'm making a music bot, but I got two errors when I execute the deferReply method.
(I don't know why, but I only got an error message, and there is no problem executing it.)
What should I do to don't show this error?
https://pastebin.com/Y8dyTrmx
...music.js=
await playing_panel.createMessageComponentCollector({ time: 0 })
.on('collect', async (button) => {
await button.deferReply({ ephemeral: false,fetchReply: true }); <- here...
switch (button.customId) {
Pastebin
Unhandled Rejection at: Promise { DiscordAPIError[10062]: Unknown...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
15 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!
- ✅
Marked as resolved by staffCommon 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 responsesSorry,
Does modal include a button?
Modals cannot have buttons no
ah, sorry.
I was wrong about modal.
Just want to say embeds.
so, Can I defer embeds button response?
Yes
so, why am I getting this error..?
Read the bullet points
hmm
so, why is not allowed hadling the two processes?
I am handling "createAudioPlayer#on()" and "interaction#editReply#createMessageComponetCollector#on()"in same section..
,but it is not good?
Show the full code
ok
wait
ah
I will post to pastbin
Pastebin
const queue = new Map();module.exports = { data: new SlashCommandB...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
we do not support TOS violations
which ytdl is
hm ok
I understand that you are persistently blabbering about tos.
certainly, rhtym is gone off.
I will close this thread.
Well, conclusion.
I think player handler is broken.
We need use removeAllListener before call each methods.