Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GetNumGuildMembers

From WoW Classic Wiki

Returns the number of guild members


Arguments
offline - boolean

Returns
If called with no argument gets number of online guild members. If offline argument is true get number of all guild members.

Example
local numGuildMembers = GetNumGuildMembers();
local numAllGuildMembers = GetNumGuildMembers(true);

Notes
This function seems to return 0 if you have not yet opened the guild roster. I suspect that a call to GuildRoster(), before calling this function will cause it to return the proper result.
This function will return a maximum value of 500.

Warnings
If the character is not part of a guild, but has left (/gquit) one, it will still return the number of members of the guild the character was last in. This means that GetNumGuildMembers() is not a reliable way to determine if the character is in a guild or not.

Template:WoW API