DeferReply problem
Hello
I want my code to clean up components under message that button was clicked and then send new message.
i got this effect by update first and then sending followup
This code works as intended but when i add deferReply this code end every time with error:
Do you have idea how would i fix that?
10 Replies
you have to use editReply when deferring
Sure thing but when i do update first then editReply i got
Code:
Error:
replace update with editReply
interaction update deletes components under clicked message in that case, i cant editReply that i think. Or am i wrong?
Use deferUpdate then
deferUpdate also throws error already replied
but did you use editReply afterwards
Yup i messed up order. It works like this
Thank you so much for help!
that should error though
you can either deferReply
which will show a ...is thinking message
or deferUpdate which just expects you to update the message later on with editReply
You are right. ok i didnt reload my code
it works like this.
It's a shame that bot doesnt show that works to update something
Thank you once again!