aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 6a7b757e..1eeff4d2 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -179,7 +179,7 @@ class HTTPClient:
# we are being rate limited
if r.status == 429:
- if not isinstance(data, dict):
+ if not r.headers.get('Via'):
# Banned by Cloudflare more than likely.
raise HTTPException(r, data)