Deferrals

I've had a few issues as I have started to try and learn deferring and avoiding timeout errors. Many scripts that worked before now only work half the time. Often I get the discord API error for 10062 which I understand means it usually took longer than 3 seconds to respond, then it times out. I also am self hosting this bot for testing purposes and have a less than optimal connection. However, all these commands worked fine previously so I want to make sure its not something in my amateur code.

More than anything Im just wanting to verify whether or not Im approaching this correctly or if its a strange issues because of my subpar connection speeds.

Ive been through the documentation and cant seem to find what I'm doing wrong, if anything at all. I've tried a few variations of things, sometimes with half sucess, but this is an example code thats having the problem right now and crashing for the api 10062 error:
Was this page helpful?