Fixed compilation issues

This commit is contained in:
LEGOlord208 2017-07-23 08:46:05 +02:00
parent 2079ab8efb
commit fede59cfa0
No known key found for this signature in database
GPG key ID: 3A818BC1F5617A24
2 changed files with 2 additions and 2 deletions

View file

@ -1018,7 +1018,7 @@ func (s *Session) GuildPruneCount(guildID string, days uint32) (count uint32, er
Pruned uint32 `json:"pruned"` Pruned uint32 `json:"pruned"`
}{} }{}
uri := EndpointGuildPrune(guildID) + "?days=" + days uri := EndpointGuildPrune(guildID) + "?days=" + strconv.FormatUint(uint64(days), 10)
body, err := s.RequestWithBucketID("GET", uri, nil, EndpointGuildPrune(guildID)) body, err := s.RequestWithBucketID("GET", uri, nil, EndpointGuildPrune(guildID))
err = unmarshal(body, &p) err = unmarshal(body, &p)

View file

@ -53,5 +53,5 @@ func newRestError(req *http.Request, resp *http.Response, body []byte) *RESTErro
} }
func (r RESTError) Error() string { func (r RESTError) Error() string {
return "HTTP " + r.Response.Status + ", " + r.ResponseBody return "HTTP " + r.Response.Status + ", " + string(r.ResponseBody)
} }