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 thenShort excerpt from the shipping addon Action Duration Reminder — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Action Duration Reminder | 6,522,011 |
| Tamriel Trade Centre | 5,234,232 |
| AwesomeGuildStore | 4,722,462 |
| Master Merchant 3.0 | 3,883,523 |
| Inventory Insight | 2,763,446 |
| pChat (Chat customization & help: look/notification/sound/automation/history) | 1,832,805 |