WoW API: IsGuildLeader

From AddOn Studio
Jump to navigation Jump to search
Reference 

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[edit]

Returns[edit]

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

Example[edit]

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[edit]

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