diff --git a/restapi.go b/restapi.go index 3da0ac3..6fb1238 100644 --- a/restapi.go +++ b/restapi.go @@ -1018,7 +1018,7 @@ func (s *Session) GuildPruneCount(guildID string, days uint32) (count uint32, er 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)) err = unmarshal(body, &p) diff --git a/types.go b/types.go index 78296f7..c0ce013 100644 --- a/types.go +++ b/types.go @@ -53,5 +53,5 @@ func newRestError(req *http.Request, resp *http.Response, body []byte) *RESTErro } func (r RESTError) Error() string { - return "HTTP " + r.Response.Status + ", " + r.ResponseBody + return "HTTP " + r.Response.Status + ", " + string(r.ResponseBody) }