Fixed compilation issues
This commit is contained in:
parent
2079ab8efb
commit
fede59cfa0
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
2
types.go
2
types.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue