mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-05 19:57:02 +00:00
Fixed bug where Messages can't be fetched
This commit is contained in:
parent
7261cb2b68
commit
0978d513c4
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue