Browse Source

Remove State fallback from Session#Guild

recapitalverb 5 years ago
parent
commit
7d04e7dfb3
1 changed files with 0 additions and 8 deletions
  1. 0 8
      restapi.go

+ 0 - 8
restapi.go

@@ -578,14 +578,6 @@ func memberPermissions(guild *Guild, channel *Channel, member *Member) (apermiss
 // Guild returns a Guild structure of a specific Guild.
 // guildID   : The ID of a Guild
 func (s *Session) Guild(guildID string) (st *Guild, err error) {
-	if s.StateEnabled {
-		// Attempt to grab the guild from State first.
-		st, err = s.State.Guild(guildID)
-		if err == nil && !st.Unavailable {
-			return
-		}
-	}
-
 	body, err := s.RequestWithBucketID("GET", EndpointGuild(guildID), nil, EndpointGuild(guildID))
 	if err != nil {
 		return