Browse Source

Switch from API v6 -> v7 to get more useful errors

Might need to tweak APIException
feature/storage
Andrei 8 years ago
parent
commit
54222989ba
  1. 2
      disco/api/http.py

2
disco/api/http.py

@ -176,7 +176,7 @@ class HTTPClient(LoggingClass):
A simple HTTP client which wraps the requests library, adding support for A simple HTTP client which wraps the requests library, adding support for
Discords rate-limit headers, authorization, and request/response validation. Discords rate-limit headers, authorization, and request/response validation.
""" """
BASE_URL = 'https://discordapp.com/api/v6' BASE_URL = 'https://discordapp.com/api/v7'
MAX_RETRIES = 5 MAX_RETRIES = 5
def __init__(self, token): def __init__(self, token):

Loading…
Cancel
Save