WoW:API SetWhoToUI
Jump to navigation
Jump to search
SetWhoToUI(state);
- Sets where the result of a API SendWho request will be handled.
Parameters
Arguments
- (State)
- State
- Number - If set to 1, the result of a SendWho will always be returned as a WHO_LIST_UPDATE event. If set to 0 then the result of a SendWho will be returned as a CHAT_MSG_SYSTEM if the list is short, but as a WHO_LIST_UPDATE if the list is long. (from WoW forums)
Returns
- Nothing.
Notes
- During my experiments with this function, the Who dialog still popped up. However, this can be avoided by using FriendsFrame:Hide(); or a combination of FriendsFrame:UnregisterEvent("WHO_LIST_UPDATE"); and FriendsFrame:RegisterEvent("WHO_LIST_UPDATE");