Returns a unit's guild affiliation
See also Guild functions, Unit functions.
Signature:
guildName,
guildRankName,
guildRankIndex
=
GetGuildInfo("unit")
or
GetGuildInfo("name")
Arguments:
unit
- A unit to query (string
, unitID)name
- The name of a unit to query; only valid forplayer
,pet
, and party/raid members (string
)
Returns:
guildName
- Name of the character's guild (string
)guildRankName
- Name of the character's guild rank (string
)guildRankIndex
- Numeric guild rank of the character (0 = guild leader; higher numbers for lower ranks) (number
)