Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetGuildBankTabPermissions

Last wiki revision 2022-07-21

Gets display / player's access info. Limited data available without bank proximity. canView, canDeposit, canEdit, stacksPerDay = GetGuildBankTabPermissions(tab)

  • tab: - guild bank tab number
  • canView: - 1 if the selected rank can view this guild bank tab, nil otherwise.
  • canDeposit: - 1 if the selected rank can deposit to this guild bank tab, nil otherwise.
  • canEdit: - 1 if the selected rank can edit the bank tab text, nil otherwise.
  • stacksPerDay: - Amount of withdrawable stacks per day or 0 if none.

local canView, canDeposit, canEdit, stacksPerDay = GetGuildBankTabPermissions(1); if canDeposit then DEFAULT_CHAT_FRAME:AddMessage("Can view, deposit and retrieve " .. stacksPerDay .. " stacks a day on tab 1."); elseif canView then DEFAULT_CHAT_FRAME:AddMessage("Can view and retrieve " .. stacksPerDay .. " stacks a day on tab 1."); else DEFAULT_CHAT_FRAME:AddMessage("Can not view tab 1."); end

  • If you are the guild master, this will return data for the rank you currently have selected in guild control. Else, it will return data for your own rank.
  • Guild masters can always view, deposit and withdraw without limits; this function does not properly return that. Use IsGuildLeader if you want to know if this is the case.
  • Note that being able to deposit implies being able to view.

Source

https://warcraft.wiki.gg/wiki/API_GetGuildBankTabPermissions · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.