WoW:API GetGuildBankTabPermissions: Difference between revisions
Jump to navigation
Jump to search
(Page creation) |
m (Move page script moved page API GetGuildBankTabPermissions to API GetGuildBankTabPermissions without leaving a redirect) |
(No difference)
|
Latest revision as of 04:45, 15 August 2023
← WoW API < GetGuildBankTabPermissions
canView, canDeposit, stacksPerDay = GetGuildBankTabPermissions(tab);
Parameters[edit]
Arguments[edit]
- tab
- Integer - guild bank tab number
Returns[edit]
Example[edit]
local canView, canDeposit, 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
Result[edit]
- 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(UnitName("player")) if you want to know if this is the case.
- Note that being able to deposit implies being able to view.