From 9d6326f0f1fd3ecb0ba5198105cdc1faa424b34b Mon Sep 17 00:00:00 2001 From: ayn2op Date: Fri, 27 Jan 2023 14:37:47 +0530 Subject: [PATCH] Use struct method receiver instead --- state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.go b/state.go index dea3d9d..acd0533 100644 --- a/state.go +++ b/state.go @@ -65,7 +65,7 @@ func (s *State) onReady(r *gateway.ReadyEvent) { for _, gf := range r.UserSettings.GuildFolders { /// If the ID of the guild folder is zero, the guild folder only contains single guild. if gf.ID == 0 { - g, err := discordState.Cabinet.Guild(gf.GuildIDs[0]) + g, err := s.Cabinet.Guild(gf.GuildIDs[0]) if err != nil { log.Println(err) continue