Fix some raid apis

This commit is contained in:
2025-01-01 21:11:06 +01:00
parent 6bf863d5de
commit d80cfb5bdf
3 changed files with 11 additions and 9 deletions

View File

@@ -1,7 +1,9 @@
---@diagnostic disable: missing-return, lowercase-global
---@alias WHO_LIST_UPDATE
---| '0' - CHAT_MSG_SYSTEM
---| '1' - WHO_LIST_UPDATE
---@param state WHO_LIST_UPDATE
---@param 0 WHO_LIST_UPDATE
---@param 1 WHO_LIST_UPDATE
---Changes the delivery method for results from SendWho() queries. In the default UI, results delivered in CHAT_MSG_SYSTEM are printed in the main chat window; results delivered in a WHO_LIST_UPDATE event cause the FriendsFrame to be shown, displaying the results in its "Who" tab.
function SetWhoToUI(state, 0, 1) end
function SetWhoToUI(state) end

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global
---@param unit string
---@param name string
---@return 1nil inParty
---@return number|nil inParty (1 or nil)
---Returns whether a unit is a player unit in the player's party. Always returns 1 for the player unit. Returns nil for the player's or party members' pets.
function UnitInParty(unit, name) end
---@overload fun(name: string): number|nil
function UnitInParty(unit) end

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global
---@param unit string
---@param name string
---@return 1nil leader
---@return number|nil leader (1 or nil)
---Returns whether a unit is a raid assistant in the player's raid
function UnitIsRaidOfficer(unit, name) end
---@overload fun(name: string): number|nil
function UnitIsRaidOfficer(unit) end