{{wowapi}}, format, example
(Noted that this function is bugged) |
({{wowapi}}, format, example) |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns the number of guild members. | |||
numGuildMembers = GetNumGuildMembers([includeOffline]); | |||
==Parameters== | |||
===Arguments=== | |||
:;includeOffline : Boolean - include offline players in the headcount? | |||
===Returns=== | |||
:;numGuildMembers : Integer - number of people in the guild (online / both online and offline) or 0 if the player is not in a guild. | |||
==Example== | |||
local numOnline, numTotal = (GetNumGuildMembers()), (GetNumGuildMembers(true)); | |||
DEFAULT_CHAT_FRAME:AddMessage(numTotal .. " guild members: " .. numOnline .. " online, " .. (numTotal - numOnline) .. " online."); | |||
===Result=== | |||
Displays the number of people online, offline, and the total headcount of your guild in the default chat frame. | |||
==Notes== | |||
You may need to call [[API_GuildRoster|GuildRoster()]] first in order to obtain correct data. May return wrong values immediately after quitting a guild. Maximum returned value is 500. | |||