#Excuse me, sometimes my bot says "apllication did not respond" how to fix that?

1 messages · Page 1 of 1 (latest)

brittle kernel
vagrant tundra
#

you are responding multiple times using a loop?

versed kelp
#

Is your db self or cloud hosted? Usually the error your getting means your bot did not respond in the allowed time.

brittle kernel
#

cloud sir

#

what should i do sir?

versed kelp
#

You are better to defer the response then and use a followup response once you have the data

vagrant tundra
#

why dont you construct an embed instead

versed kelp
#

Or you respond "Fetching data..." Immediately then edit the response once you have the data. That way you always respond in the allowed time.

brittle kernel
#

Ok guys thanks for the suggest 👍

brittle kernel
#

ok its working after i try to add defer.

versed kelp
#

Yeah the cloud hosted db is just taking too long to respond.

brittle kernel
#

should i add followup response in the end of code? what happen if i dont add the command?

versed kelp
#

are you still using ctx.respond to send the data, once you have it?

brittle kernel
#

Yes sir

versed kelp
#

Then you are good

brittle kernel
#

So, the followup response is optional right?

versed kelp
#

You are already responded no follow-up is required

brittle kernel
#

Ooo i see, oke thanks for helping sir

versed kelp
#

.tag close

sullen pikeBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @urban vault.