Hi,
I have made an addons that deals with displaying guild mates (gmGuild / gmGuildFriends).
It can shows the roster of the guild by pressing the LDB icon.
The problem is when you try to interact with the roster because a lot of function are protected.
Example:
Lua Code:
1x [ADDON_ACTION_FORBIDDEN] AddOn 'gmGuild' tried to call the protected function 'SetGuildRankOrder()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `SetGuildRankOrder'
[string "@Blizzard_Communities\GuildRoster.lua"]:174: in function `func'
[string "@SharedXML\UIDropDownMenu.lua"]:905: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
The code I use is this:
Lua Code:
if button == "LeftButton" then
ToggleGuildFrame()
if IsInGuild() then
CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.ROSTER)
end
end
Is possible to secure this call ?
Thanks so much for the help.