ESODecoded

GetGuildId

ESO Lua API function — used by 251 of the 3,030 addons we indexed (combined 39,925,581 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetGuildId(luaindex guildIndex)

Returns: integer guildId

Real usage — from Action Duration Reminder

    local guildIndex = channelType - CHAT_CHANNEL_GUILD_1 + 1
    local guildId = GetGuildId(guildIndex)
    if guildId then

Short excerpt from the shipping addon Action Duration Reminderits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Action Duration Reminder6,522,011
Tamriel Trade Centre5,234,232
AwesomeGuildStore4,722,462
Master Merchant 3.03,883,523
Inventory Insight2,763,446
pChat (Chat customization & help: look/notification/sound/automation/history)1,832,805