Merge pull request #211 from jonas747/guildchannelsupdate

Added GuildChannelsReorder
This commit is contained in:
Bruce 2016-06-04 19:46:18 -05:00
commit 15f6afb2d7

View file

@ -716,6 +716,15 @@ func (s *Session) GuildChannelCreate(guildID, name, ctype string) (st *Channel,
return
}
// GuildChannelsReorder updates the order of channels in a guild
// guildID : The ID of a Guild.
// channels : Updated channels.
func (s *Session) GuildChannelsReorder(guildID string, channels []*Channel) (err error) {
_, err = s.Request("PATCH", GUILD_CHANNELS(guildID), channels)
return
}
// GuildInvites returns an array of Invite structures for the given guild
// guildID : The ID of a Guild.
func (s *Session) GuildInvites(guildID string) (st []*Invite, err error) {