Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Talk:API IsInGuild

Discussion page of API IsInGuild

Function isn't relyable shortly after login

The Problem

If this function is used shortly after login, it will return nil although you are in a guild.
Even after both events ADDON_LOADED and VARIABLES_LOADED are fired, the function is not relyable yet.

Any known solution / workaround?

I thought about using the GUILD_MOTD event for notifying me about being in a guild (even GUILD_MOTD is fired before IsInGuild works correctly).

Maybe this is already a known issue

Add a link to related articles if that is in case (API IsInGuild, API GetGuildInfo, ...).