Browse Source

:ok_hand:

Chris Rhodes 9 years ago
parent
commit
32dc320386
1 changed files with 2 additions and 2 deletions
  1. 2 2
      restapi.go

+ 2 - 2
restapi.go

@@ -405,9 +405,9 @@ func (s *Session) GuildDelete(guildID string) (st *Guild, err error) {
 
 // GuildLeave leaves a Guild.
 // guildID   : The ID of a Guild
-func (s *Session) GuildLeave(guildID string) (st *Guild, err error) {
+func (s *Session) GuildLeave(guildID string) (err error) {
 
-	_, err := s.Request("DELETE", USER_GUILD("@me", guildID), nil)
+	_, err = s.Request("DELETE", USER_GUILD("@me", guildID), nil)
 	return
 }