Discord API Error

I had made a purge command. But the issue is I didn't set any cooldown on it and I am not sure if that's creating the issue.

Issue -
I tried using purge 2-3 times continuously for testing purposes. It worked perfectly fine for 1-2 times then the "The application did not respond" came.

Code ( it was too long so I had to put it on pastebin ) -
https://pastebin.com/abv3J4iX

Was this due to API error or something in my code isn't right. Please reply if any other resource is required for consideration.
20240315_123225.png
Pastebin
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.
Was this page helpful?