Skip to content

Commit

Permalink
Revert "Fixed 404 when calling Session.GuildCreate (#439)"
Browse files Browse the repository at this point in the history
This reverts commit cf237e4.
  • Loading branch information
iopred committed Sep 5, 2017
1 parent cf237e4 commit fd8721a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions endpoints.go
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion restapi.go
Expand Up @@ -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
}
Expand Down

0 comments on commit fd8721a

Please sign in to comment.