From 169895af550c982da028fcf3011f28b174008cd8 Mon Sep 17 00:00:00 2001 From: Noah Santschi-Cooney Date: Sat, 7 Apr 2018 23:53:07 +0100 Subject: [PATCH] Removed state checking from (s *Session) Guild(...) to be consistent with other methods (#530) --- restapi.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/restapi.go b/restapi.go index 56bb186..b80f8c9 100644 --- a/restapi.go +++ b/restapi.go @@ -577,14 +577,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 { - return - } - } - body, err := s.RequestWithBucketID("GET", EndpointGuild(guildID), nil, EndpointGuild(guildID)) if err != nil { return