From c13c19051677d57dc052574ee689d66ae1e1f209 Mon Sep 17 00:00:00 2001 From: jonas747 Date: Mon, 30 May 2016 11:51:51 +0200 Subject: [PATCH] Added GuildChannelsUpdate --- restapi.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/restapi.go b/restapi.go index ef048f9..2a99cca 100644 --- a/restapi.go +++ b/restapi.go @@ -716,6 +716,15 @@ func (s *Session) GuildChannelCreate(guildID, name, ctype string) (st *Channel, return } +// GuildChannelsUpdate updates the given channels of a guild +// guildID : The ID of a Guild. +// channels : Updated channels. +func (s *Session) GuildChannelsUpdate(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) {