GetSelectedGuildBankId
ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 3,502,431 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetSelectedGuildBankId()Returns: integer:nilable guildId
Real usage — from Inventory Insight
elseif (bagId == BAG_GUILDBANK) then
return GetGuildName(GetSelectedGuildBankId())
elseif (bagId >= BAG_HOUSE_BANK_ONE and bagId <= BAG_HOUSE_BANK_TEN) thenShort excerpt from the shipping addon Inventory Insight — 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 |
|---|---|
| Inventory Insight | 2,763,446 |
| CookeryWiz | 239,380 |
| Craft Bag Extended | 123,395 |
| RidinDirty | 52,370 |
| SALTI - Currency Totals | 43,857 |
| FCO Companion | 29,472 |