Add GET /teams/invite/{invite_id} endpoint for v4 (#6685)

Этот коммит содержится в:
Joram Wilander
2017-06-20 09:55:43 -04:00
коммит произвёл George Goldberg
родитель effaeee830
Коммит 2e6fd031d1
5 изменённых файлов: 72 добавлений и 0 удалений

Просмотреть файл

@@ -350,6 +350,17 @@ func (c *Context) RequireTeamId() *Context {
return c
}
func (c *Context) RequireInviteId() *Context {
if c.Err != nil {
return c
}
if len(c.Params.InviteId) != 26 {
c.SetInvalidUrlParam("invite_id")
}
return c
}
func (c *Context) RequireChannelId() *Context {
if c.Err != nil {
return c