Interaction problems

so i m getting this eror Interaction has already been acknowledged.
20 Replies
Youssef
YoussefOPā€¢3y ago
Youssef
YoussefOPā€¢3y ago
the erro take me to the collecter some exaples of how i reply
Youssef
YoussefOPā€¢3y ago
Youssef
YoussefOPā€¢3y ago
can u explain more about what do u mean? yes? i used reply then editReply then followUp second i'ill sendu the whole to get info more Done sent it in dm yes ofc only the code cause it's private t'y for understanding this yes? i need two one for the first menu and one for the second how? i have 2 menus how 1 collecter? did u read the code how it work this is can't be cause the second menu will be sended in the first collecter no no i belive u but really to be honest with you i don't know how to do this like the logic to do it what do u mean with block instead and what conditions i need to check @muchnameless
Yinoguns
Yinogunsā€¢3y ago
They probably meant a block function.
() => {
...
}
() => {
...
}
As opposed to non-block
() => doThing();
() => doThing();
Youssef
YoussefOPā€¢3y ago
okai but what this will help ? how it gonna solve the error i realy didn't get what i need to do to fix the error šŸ˜­
Yinoguns
Yinogunsā€¢3y ago
Unforchently we cannot understand things for you. You're acknowledging the interaction more than once, nameless explained this and gave suggestions to workarounds. It is upto you to improve your understanding, and apply what they said. And sometimes trying, and failing, is the best way to learn.
Youssef
YoussefOPā€¢3y ago
You're acknowledging the interaction more than once, yes ok, but what is better usage to reply ? i used reply then editReply then followUp
Yinoguns
Yinogunsā€¢3y ago
@synsetz
Youssef
YoussefOPā€¢3y ago
yes i used them only 1
Yinoguns
Yinogunsā€¢3y ago
If that were true. You wouldn't get the error you arw getting with yoyr collectors. As per nameless' statements
Youssef
YoussefOPā€¢3y ago
wait im gonna send u the code to see
Yinoguns
Yinogunsā€¢3y ago
@synsetz Doesn't matter. Add a log before every action, you'll see which causes the error and what you're doing twice. Your code is wrong, accept it.
Youssef
YoussefOPā€¢3y ago
ok im accepting it then tell me where is the problem to fix it
Yinoguns
Yinogunsā€¢3y ago
Nameless already did. So refactor your double collection so it doesn't reply to ths same interaction twice
Youssef
YoussefOPā€¢3y ago
idk how to make it one collecter can u tell me how ??? cause the second collecter work when the first collecter send the reply
Yinoguns
Yinogunsā€¢3y ago
My guess is they wanted you to do a:
collector {
if customId === categories {
// categories stuff
} else if customId === commands {
// ckmmands stuff
}
}
collector {
if customId === categories {
// categories stuff
} else if customId === commands {
// ckmmands stuff
}
}
I might be wrong however, I personally have not done collectors yet
Youssef
YoussefOPā€¢3y ago
ok and how to make a global collecter ?
Yinoguns
Yinogunsā€¢3y ago
Read my last sentence...
Youssef
YoussefOPā€¢3y ago
ok
Want results from more Discord servers?
Add your server