I dont use Pitbull but I see that it has a modular setup.
Looking at the code I'd guess it is created on startup. But only when the group is enabled (dont know what that means in this context).
In the Main.lua the function OnProfileChanged calls MakeGroupHeader which is located in GroupHeader.lua . So my guess would be that the group 'party' is not enabled when you try to access it.
Lua Code:
function PitBull4:OnProfileChanged()
...
for group, group_db in pairs(db.profile.groups) do
if group_db.enabled then
self:MakeGroupHeader(group)
for header in PitBull4:IterateHeadersForName(group) do
header.group_db = group_db
header:RefreshGroup()
header:UpdateShownState()
end
end
end
...