ESODecoded

EVENT_GUILD_SELF_LEFT_GUILD

ESO Lua API function — used by 52 of the 3,030 addons we indexed (combined 19,100,918 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_GUILD_SELF_LEFT_GUILD(integer guildServerId, string characterName, integer guildId)

Real usage — from Inventory Insight

  EVENT_MANAGER:RegisterForEvent("IIFA_GuildJoin", EVENT_GUILD_SELF_JOINED_GUILD, function() IIfA:CreateOptionsMenu() end)
  EVENT_MANAGER:RegisterForEvent("IIFA_GuildLeave", EVENT_GUILD_SELF_LEFT_GUILD, function() IIfA:CreateOptionsMenu() 

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
AwesomeGuildStore4,722,462
Master Merchant 3.03,883,523
Inventory Insight2,763,446
Essential Housing Tools1,862,490
pChat (Chat customization & help: look/notification/sound/automation/history)1,832,805
LibSFUtils1,648,729