ESODecoded

DoesPlayerHaveGuildPermission

ESO Lua API function — used by 49 of the 3,030 addons we indexed (combined 3,013,371 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

DoesPlayerHaveGuildPermission(integer guildId, [GuildPermission|#GuildPermission] permission)

Returns: bool hasPermission

Real usage — from FCO ItemSaver (Mark, filter and save your items against decon/sell/etc.)

    --Check if the player got the rights to withdraw items from the guild bank
    local retVal = DoesPlayerHaveGuildPermission(currentGuildBank, GUILD_PERMISSION_BANK_WITHDRAW)
    return retVal

Short excerpt from the shipping addon FCO ItemSaver (Mark, filter and save your items against decon/sell/etc.)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

AddonTotal downloads
FCO ItemSaver (Mark, filter and save your items against decon/sell/etc.)1,031,056
Roomba - Guildbank Stacker675,040
CookeryWiz239,380
Shissu's Guild Tools186,581
Craft Bag Extended123,395
DBGN & DCGN (Change notes for Guild members)78,930