WoW:API IsGuildLeader: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(changed the description this function only returns if you are a guildleader or not, not possible to check other player maybe worked at some time)
m (Move page script moved page API IsGuildLeader to API IsGuildLeader without leaving a redirect)
 
(No difference)

Latest revision as of 04:46, 15 August 2023

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.