Browse Source

Revert "Fixed 404 when calling Session.GuildCreate (#439)"

This reverts commit cf237e4c2541e3d771932cd5e8d462972562289e.
Chris Rhodes 7 years ago
parent
commit
fd8721a522
2 changed files with 1 additions and 3 deletions
  1. 0 2
      endpoints.go
  2. 1 1
      restapi.go

+ 0 - 2
endpoints.go

@@ -122,8 +122,6 @@ var (
 	EndpointRelationship        = func(uID string) string { return EndpointRelationships() + "/" + uID }
 	EndpointRelationshipsMutual = func(uID string) string { return EndpointUsers + uID + "/relationships" }
 
-	EndpointGuildCreate = EndpointAPI + "guild"
-
 	EndpointInvite = func(iID string) string { return EndpointAPI + "invite/" + iID }
 
 	EndpointIntegrationsJoin = func(iID string) string { return EndpointAPI + "integrations/" + iID + "/join" }

+ 1 - 1
restapi.go

@@ -585,7 +585,7 @@ func (s *Session) GuildCreate(name string) (st *Guild, err error) {
 		Name string `json:"name"`
 	}{name}
 
-	body, err := s.RequestWithBucketID("POST", EndpointGuildCreate, data, EndpointGuildCreate)
+	body, err := s.RequestWithBucketID("POST", EndpointGuilds, data, EndpointGuilds)
 	if err != nil {
 		return
 	}