Kiatra / ChocolateBar

ChocolateBar is a World of Warcraft addons to display plugins in a bar on top or bottom of your screen
https://www.wowace.com/projects/chocolatebar
18 stars 9 forks source link

[Bug Report] Blizzard API 'GetAddOnMetadata is deprecated #35

Open Myrroddin opened 1 month ago

Myrroddin commented 1 month ago

What game version did the bug occur in?

Vanilla Classic, Burning Crusade Classic, Wrath of the Lich King Classic, Retail

Troubleshooting

Describe the bug.

GetAddOnMetadata was added to the depreciated list at the beginning of Dragonflight. It has been replaced by C_AddOns.GetAddOnMetadata for all game versions.

I found the depreciated API on line 12 of Options.lua although it may exist elsewhere.

Steps to reproduce.

I have checked if the API C_AddOns exists in all WoW versions, and it does return information. Continuing to use the older GetAddOnMetadata will stop functioning during the pre-patch for The War Within.

Expected behavior.

Replacing outdated APIs before they cease to work and cause further issues.

Errors

No errors yet, but they will come unless the API is updated in ChocolateBar.