API IsGuildLeader

From Wowpedia
Jump to: navigation, search
guildleader = IsGuildLeader()

This function checks to see if player is a guild master and returns the appropriate result.

Parameters

Arguments

none

Returns

guildleader 
1 if the player is 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 you are a guild master or not.