Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetGuildInfo
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Details== :*You may use a name in the argument for this function :*This function only works in close proximity to the unit you are trying to get info from. I don't know the distance, but it is the same distance that the character portrait loads if you are in party with them. It will abandon the data shortly after you leave the area, even if the portrait is remembered. :*If using with [[UnitId]] "player" on loading it happens that this value is nil even if the player is in a guild. I wrote a little function which checks in the [[Events/Guild#GUILD_ROSTER_UPDATE|GUILD_ROSTER_UPDATE]] and [[Events/Guild#PLAYER_GUILD_UPDATE|PLAYER_GUILD_UPDATE]] events, if guild name is available. As long as it is not, no actions are fired by my guild event handling. local status = true if IsInGuild() then local test = GetGuildInfo("player") if (test == nil) then status = false end end return status
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Close
Loading editor…