Fixed bug where Messages can't be fetched

This commit is contained in:
diamondburned (Forefront) 2020-01-19 23:21:57 -08:00
parent 7261cb2b68
commit 0978d513c4
1 changed files with 5 additions and 2 deletions

View File

@ -91,8 +91,11 @@ func (c *Client) messagesRange(channelID, before, after,
param.Limit = limit
var msgs []discord.Message
return msgs, c.RequestJSON(&msgs, "GET",
EndpointChannels+channelID.String(), httputil.WithSchema(c, param))
return msgs, c.RequestJSON(
&msgs, "GET",
EndpointChannels+channelID.String()+"/messages",
httputil.WithSchema(c, param),
)
}
func (c *Client) Message(