Merge pull request #558 from Seklfreak/add-create-channel-invite-unique-field

Adds support for the Unique field to ChannelInviteCreate
This commit is contained in:
Bruce 2018-06-11 09:58:56 -05:00 committed by GitHub
commit bc7403812a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {