[APIv4] add getChannelMembersTimezone (#9286)
* add getChannelMembersTimezone * update per feedback review * add delimeter to error
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e87965f39d
Коммит
908ed5555f
@@ -1746,6 +1746,17 @@ func (c *Client4) GetChannelStats(channelId string, etag string) (*ChannelStats,
|
||||
}
|
||||
}
|
||||
|
||||
// GetChannelMembersTimezones gets a list of timezones for a channel.
|
||||
func (c *Client4) GetChannelMembersTimezones(channelId string) ([]string, *Response) {
|
||||
r, err := c.DoApiGet(c.GetChannelRoute(channelId)+"/timezones", "")
|
||||
if err != nil {
|
||||
return nil, BuildErrorResponse(r, err)
|
||||
}
|
||||
|
||||
defer closeBody(r)
|
||||
return ArrayFromJson(r.Body), BuildResponse(r)
|
||||
}
|
||||
|
||||
// GetPinnedPosts gets a list of pinned posts.
|
||||
func (c *Client4) GetPinnedPosts(channelId string, etag string) (*PostList, *Response) {
|
||||
if r, err := c.DoApiGet(c.GetChannelRoute(channelId)+"/pinned", etag); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user