forked from pothtonswer/discordmuffin
Format restapi.go with gofmt
This commit is contained in:
parent
a838552b22
commit
1b69ba4a5f
1 changed files with 3 additions and 3 deletions
|
@ -1575,9 +1575,9 @@ func (s *Session) ChannelInvites(channelID string) (st []*Invite, err error) {
|
|||
func (s *Session) ChannelInviteCreate(channelID string, i Invite) (st *Invite, err error) {
|
||||
|
||||
data := struct {
|
||||
MaxAge int `json:"max_age"`
|
||||
MaxUses int `json:"max_uses"`
|
||||
Temporary bool `json:"temporary"`
|
||||
MaxAge int `json:"max_age"`
|
||||
MaxUses int `json:"max_uses"`
|
||||
Temporary bool `json:"temporary"`
|
||||
}{i.MaxAge, i.MaxUses, i.Temporary}
|
||||
|
||||
body, err := s.RequestWithBucketID("POST", EndpointChannelInvites(channelID), data, EndpointChannelInvites(channelID))
|
||||
|
|
Loading…
Reference in a new issue