GetStablePetInfo() API Call

GetStablePetInfo() returns nil on beta. Presumably, it has been replaced with something new.

I have not been able to find anything about this. Has anyone seen anything on this or know another way to get the same information?

The deprecations lists it as a direct replacement now looking like:

GetStablePetInfo = function(...)
   local t = C_StableInfo.GetStablePetInfo(...);
   if t then
      return unpack({t.icon, t.name, t.level, t.familyName, t.specialization});
   end
end

Thank you very much!

I had no luck finding this where I was looking–could you point me to where you found this? I must be looking at an old or incomplete list of changes. Thanks again!

If you export the code for the current build (DF), under the list of Addons will be various Blizzard_Deprecated… addons that list what’s going away in the next expansion and if possible how they are using the new functionality with the current(old) convention

https://warcraft.wiki.gg/wiki/Viewing_Blizzard%27s_interface_code

1 Like