WoWInterface - View Single Post - Is possible to open Guild (or communities) Frame to a specific TAB ?
View Single Post
03-18-20, 10:32 PM   #6
I did that?
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,234
As an addon (retail) running /gdo using the code below opens the guild window to the guild information tab.

If the frame isn't shown, it will open it and if it is shown but on another tab it will open the info tab.

Lua Code:
  1. SLASH_GLDOPEN1 = "/gdo"
  2. SlashCmdList["GLDOPEN"] = function()
  3.     if not CommunitiesFrame or not CommunitiesFrame:IsShown() then
  4.         ToggleGuildFrame()
  5.     end
  6.     CommunitiesFrame.GuildInfoTab:GetScript("OnClick")(CommunitiesFrame.GuildInfoTab)
  7. end

Even if you're not in a guild so it would probably be best to use a "in guild" check.
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-18-20 at 10:44 PM.
  Reply With Quote