Added comment line describing the around parameter

This commit is contained in:
Floretta 2017-01-03 16:42:27 +01:00 committed by GitHub
parent c4c9502072
commit dacb0a3a0c

View file

@ -1210,6 +1210,7 @@ func (s *Session) ChannelTyping(channelID string) (err error) {
// limit : The number messages that can be returned. (max 100) // limit : The number messages that can be returned. (max 100)
// beforeID : If provided all messages returned will be before given ID. // beforeID : If provided all messages returned will be before given ID.
// afterID : If provided all messages returned will be after given ID. // afterID : If provided all messages returned will be after given ID.
// aroundID : If provided all messages returned will be around given ID.
func (s *Session) ChannelMessages(channelID string, limit int, beforeID, afterID, aroundID string) (st []*Message, err error) { func (s *Session) ChannelMessages(channelID string, limit int, beforeID, afterID, aroundID string) (st []*Message, err error) {
uri := EndpointChannelMessages(channelID) uri := EndpointChannelMessages(channelID)