Lets you know whether you are in a guild.
inGuild = IsInGuild()
if IsInGuild() then SendChatMessage("Hi Guild!", "GUILD") end