Check another players permissions
I'm trying to set permissions for certain broadcasts within an addon. C_GuildInfo.CanEditOfficerNote() identifies if the native user is able to edit officer notes. But is there a method/function that can determine if another player in your guild has those permissions? Or is GetGuildRosterInfo rankIndex 0 and 1 the best bet in that case? Have been reluctant to find another method.
|
Check https://wow.gamepedia.com/API_C_Guil...olGetRankFlags
Code:
C_GuildInfo.GuildControlGetRankFlags(rankOrder) == 12 |
ughh I meant
Code:
if C_GuildInfo.GuildControlGetRankFlags(rankOrder)[12] then |
Quote:
|
Quote:
Just pointing you in the right direction. It's not that much of roundabout way Lua Code:
Modify it if you want it to check against names (GGRI includes realm) instead of guids |
All times are GMT -6. The time now is 09:51 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI