Explorar el Código

adds Unique field to ChannelInviteCreate

Sebastian Winkler hace 6 años
padre
commit
6f45ea3535
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      restapi.go

+ 2 - 1
restapi.go

@@ -1718,7 +1718,8 @@ func (s *Session) ChannelInviteCreate(channelID string, i Invite) (st *Invite, e
 		MaxAge    int  `json:"max_age"`
 		MaxUses   int  `json:"max_uses"`
 		Temporary bool `json:"temporary"`
-	}{i.MaxAge, i.MaxUses, i.Temporary}
+		Unique    bool `json:"unique"`
+	}{i.MaxAge, i.MaxUses, i.Temporary, i.Unique}
 
 	body, err := s.RequestWithBucketID("POST", EndpointChannelInvites(channelID), data, EndpointChannelInvites(channelID))
 	if err != nil {