Returns a unit's guild affiliation

See also Guild functions, Unit functions.


guildName, guildRankName, guildRankIndex = GetGuildInfo("unit") or GetGuildInfo("name")


  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)


  • 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)