mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
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:
parent
79bc3a7fb6
commit
2947e31375
1 changed files with 9 additions and 0 deletions
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue