API GetGuildBankTabInfo

From Wowpedia
Jump to: navigation, search

Gets display / player's access information regarding a guild bank tab.

name, icon, isViewable, canDeposit, numWithdrawals, remainingWithdrawals, filtered = GetGuildBankTabInfo(tab);

Arguments

("tab")
tab 
Integer - The index of the guild bank tab. (result of GetCurrentGuildBankTab())

Returns

name, icon, isViewable, canDeposit, numWithdrawals, remainingWithdrawals, filtered
name 
String - Title of the bank tab.
icon 
String - Path to the bank tab icon texture.
isViewable 
Boolean - True if the player can click on the bank tab.
canDeposit 
Boolean - True if the player can deposit items.
numWithdrawals 
Integer - Available withdrawals per day.
remainingWithdrawals 
Integer - Remaining withdrawals for the day.
filtered
Boolean - True if the requested tab is filtered out.

Notes

As of 4.0.3, the remainingWithdrawals value seems to be bugged, in that it returns the value for the currently selected tab rather than the tab passed to the function. This bug can be demonstrated by entering /dump GetGuildBankTabInfo(1) while viewing different tabs of the bank; the value returned reflects the currently viewed tab, rather than the first tab. You can get around this by calling QueryGuildBankTab(tabNum) before calling this function.