View Single Post
08-11-19, 01:06 AM   #3
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
Im my addon I use GUILD ROSTER UPDATE.
While testing I noticed its fires two times during the loading process but the first time the guild infornation is sometimes not available.

This is the code I use:
Code:
		elseif event == "GUILD_ROSTER_UPDATE" then
			--print("GUILD_ROSTER_UPDATE")	
			GuildInfo()			
			if IsInGuild() then
				GildamDB[cfg.REALM_NAME][cfg.PLAYER_NAME].Guild.name = GetGuildInfo("player")
				Gildam_Roster()
			end	
		end
__________________
Better to fail then never have tried at all.
  Reply With Quote