1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-30 06:01:17 +00:00

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

View file

@ -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(