From c3cb8469bb2af2d51fa9ad4fc98712b3b8b21ae8 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sat, 20 Feb 2016 17:03:07 -0600 Subject: [PATCH 1/4] Removed GuildInviteCreate function. --- restapi.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/restapi.go b/restapi.go index 9cfb95d..5215c3b 100644 --- a/restapi.go +++ b/restapi.go @@ -587,28 +587,6 @@ func (s *Session) GuildInvites(guildID string) (st []*Invite, err error) { return } -// GuildInviteCreate creates a new invite for the given guild. -// guildID : The ID of a Guild. -// i : An Invite struct with the values MaxAge, MaxUses, Temporary, -// and XkcdPass defined. -func (s *Session) GuildInviteCreate(guildID string, i *Invite) (st *Invite, err error) { - - data := struct { - MaxAge int `json:"max_age"` - MaxUses int `json:"max_uses"` - Temporary bool `json:"temporary"` - XKCDPass bool `json:"xkcdpass"` - }{i.MaxAge, i.MaxUses, i.Temporary, i.XkcdPass} - - body, err := s.Request("POST", GUILD_INVITES(guildID), data) - if err != nil { - return - } - - err = unmarshal(body, &st) - return -} - // GuildRoles returns all roles for a given guild. // guildID : The ID of a Guild. func (s *Session) GuildRoles(guildID string) (st []*Role, err error) { From a9306fda00cee83a9dfc0d94f1a9854af692cbc2 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sat, 20 Feb 2016 17:42:10 -0600 Subject: [PATCH 2/4] Removed unreachable return --- voice.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/voice.go b/voice.go index 36cb5dc..dcd0c94 100644 --- a/voice.go +++ b/voice.go @@ -136,8 +136,6 @@ func (v *Voice) wsListen(wsConn *websocket.Conn, close <-chan struct{}) { go v.wsEvent(messageType, message) } } - - return } // wsEvent handles any voice websocket events. This is only called by the From cadf36c775f5d06df6fb3749502a6e2ea0e58137 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sat, 20 Feb 2016 20:53:56 -0600 Subject: [PATCH 3/4] Bump to v0.11.0 --- discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord.go b/discord.go index e340a9b..f3ab96e 100644 --- a/discord.go +++ b/discord.go @@ -19,7 +19,7 @@ import ( ) // VERSION of Discordgo, follows Symantic Versioning. (http://semver.org/) -const VERSION = "0.11.0-alpha" +const VERSION = "0.11.0" // New creates a new Discord session and will automate some startup // tasks if given enough information to do so. Currently you can pass zero From 44d46674631932d67966c1b3f4a2d1776bf81a7b Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sat, 20 Feb 2016 20:59:40 -0600 Subject: [PATCH 4/4] Bump to v0.12.0-alpha --- discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord.go b/discord.go index f3ab96e..f70efa7 100644 --- a/discord.go +++ b/discord.go @@ -19,7 +19,7 @@ import ( ) // VERSION of Discordgo, follows Symantic Versioning. (http://semver.org/) -const VERSION = "0.11.0" +const VERSION = "0.12.0-alpha" // New creates a new Discord session and will automate some startup // tasks if given enough information to do so. Currently you can pass zero