Skip to content

Commit

Permalink
Fixed bug where Messages can't be fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Jan 20, 2020
1 parent 7261cb2 commit 0978d51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0978d51

Please sign in to comment.