Explorar el Código

Use struct method receiver instead

ayn2op hace 3 años
padre
commit
9d6326f0f1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      state.go

+ 1 - 1
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