ESODecoded

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) then

Short excerpt from the shipping addon Inventory Insightits 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
Inventory Insight2,763,446
CookeryWiz239,380
Craft Bag Extended123,395
RidinDirty52,370
SALTI - Currency Totals43,857
FCO Companion29,472