forked from pothtonswer/discordmuffin
Constant missing in Go < 1.6
This commit is contained in:
parent
6c820412cf
commit
ce9840f8c4
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (s *Session) request(method, urlStr, contentType string, b []byte) (respons
|
||||||
|
|
||||||
// TODO check for 401 response, invalidate token if we get one.
|
// TODO check for 401 response, invalidate token if we get one.
|
||||||
|
|
||||||
case http.StatusTooManyRequests: // Rate limiting
|
case 429: // TOO MANY REQUESTS - Rate limiting
|
||||||
rl := RateLimit{}
|
rl := RateLimit{}
|
||||||
err = json.Unmarshal(response, &rl)
|
err = json.Unmarshal(response, &rl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue