Skip to content

Commit

Permalink
adds Unique field to ChannelInviteCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Jun 8, 2018
1 parent 67729f3 commit 6f45ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6f45ea3

Please sign in to comment.