Add GET /teams/invite/{invite_id} endpoint for v4 (#6685)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
effaeee830
Коммит
2e6fd031d1
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user