feat: add GuildRoster request and SortGuildRoster stub

GuildRoster() triggers CMSG_GUILD_ROSTER to request updated guild
member data from the server. Called by guild roster addons and the
social panel to refresh the member list.

SortGuildRoster() is a no-op (sorting is handled client-side by
the ImGui guild roster display).
This commit is contained in:
Kelsi 2026-03-22 23:42:44 -07:00
parent 79bc3a7fb6
commit 2947e31375

View file

@ -5686,6 +5686,15 @@ void LuaEngine::registerCoreAPI() {
{"IsInGuild", lua_IsInGuild},
{"GetGuildInfo", lua_GetGuildInfoFunc},
{"GetNumGuildMembers", lua_GetNumGuildMembers},
{"GuildRoster", [](lua_State* L) -> int {
auto* gh = getGameHandler(L);
if (gh) gh->requestGuildRoster();
return 0;
}},
{"SortGuildRoster", [](lua_State* L) -> int {
(void)L; // Sorting is client-side display only
return 0;
}},
{"GetGuildRosterInfo", lua_GetGuildRosterInfo},
{"GetGuildRosterMOTD", lua_GetGuildRosterMOTD},
{"GetNumFriends", lua_GetNumFriends},