WoW API: IsGuildLeader

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API IsGuildLeader to API IsGuildLeader without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < IsGuildLeader

guildmaster = IsGuildMaster()

This function checks to see if you are the guild master of a guild and returns the appropriate result.

Parameters

Returns

guildmaster
True if you are a guild master, otherwise false.

Example

if (IsGuildLeader() == true) then
    DEFAULT_CHAT_FRAME:AddMessage("You are a Guild master");
else
    DEFAULT_CHAT_FRAME:AddMessage("You are not a Guild master");
end

Result

Displays a message stating if your a guild master or not.