Returns the total and online number of guild members.
numTotalMembers, numOnlineMembers = GetNumGuildMembers();
- Integer - total number of people in the guild, or 0 if player is not in a guild.
- Integer - number of online people in the guild, or 0 if the player is not in a guild.
local numTotal, numOnline = GetNumGuildMembers(); DEFAULT_CHAT_FRAME:AddMessage(numTotal .. " guild members: " .. numOnline .. " online, " .. (numTotal - numOnline) .. " offline.");
Displays the number of people online, offline, and the total headcount of your guild in the default chat frame.
You may need to call GuildRoster() first in order to obtain correct data. May return wrong values immediately after quitting a guild. Maximum returned value is 1000.