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
d.js toolkit
d.js toolkit6mo 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 staff
d.js docs
d.js docs6mo ago
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 responses
削除決定
削除決定OP6mo ago
Sorry, Does modal include a button?
treble/luna
treble/luna6mo ago
Modals cannot have buttons no
削除決定
削除決定OP6mo ago
ah, sorry. I was wrong about modal. Just want to say embeds. so, Can I defer embeds button response?
treble/luna
treble/luna6mo ago
Yes
削除決定
削除決定OP6mo ago
so, why am I getting this error..?
treble/luna
treble/luna6mo ago
Read the bullet points
削除決定
削除決定OP6mo ago
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?
treble/luna
treble/luna6mo ago
Show the full code
削除決定
削除決定OP6mo ago
ok wait ah I will post to pastbin
削除決定
削除決定OP6mo ago
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.
treble/luna
treble/luna6mo ago
we do not support TOS violations which ytdl is
削除決定
削除決定OP6mo ago
No description
削除決定
削除決定OP6mo ago
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.
Want results from more Discord servers?
Add your server