Explorar el Código

Revert "Added UserVerify function"

This reverts commit 7179f550b48b6f7c9de4fe87a0a0020c9bda8d36.
Rivalo hace 9 años
padre
commit
46a8f39f38
Se han modificado 1 ficheros con 0 adiciones y 15 borrados
  1. 0 15
      restapi.go

+ 0 - 15
restapi.go

@@ -242,21 +242,6 @@ func (s *Session) UserGuilds(userID string) (st []Guild, err error) {
 	return
 }
 
-// UserVerify updates account information to make vertification possible.
-// Account still needs to be activated using the send email
-func (s *Session) UserVerify(username, email, password string) (st User, err error) {
-
-	data := struct {
-		Username string `json:"username"`
-		Email    string `json:"email"`
-		Password string `json:"password"`
-	}{username, email, password}
-
-	body, err := s.Request("PATCH", USER("@me"), data)
-	err = json.Unmarshal(body, &st)
-	return
-}
-
 // ------------------------------------------------------------------------------------------------
 // Functions specific to Discord Guilds
 // ------------------------------------------------------------------------------------------------