mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-23 04:57:16 +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
|
param.Limit = limit
|
||||||
|
|
||||||
var msgs []discord.Message
|
var msgs []discord.Message
|
||||||
return msgs, c.RequestJSON(&msgs, "GET",
|
return msgs, c.RequestJSON(
|
||||||
EndpointChannels+channelID.String(), httputil.WithSchema(c, param))
|
&msgs, "GET",
|
||||||
|
EndpointChannels+channelID.String()+"/messages",
|
||||||
|
httputil.WithSchema(c, param),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) Message(
|
func (c *Client) Message(
|
||||||
|
|
Loading…
Reference in a new issue