diff --git a/api/SendAddonMessage.lua b/api/SendAddonMessage.lua index dca629b..91e8b35 100644 --- a/api/SendAddonMessage.lua +++ b/api/SendAddonMessage.lua @@ -1,28 +1,19 @@ ---@diagnostic disable: missing-return, lowercase-global ----@param prefix string ----@param message string ----@param type WHISPER ----@param BATTLEGROUND ----@param CHANNEL ----@param GUILD ----@param OFFICER ----@param PARTY ----@param RAID ----@param WHISPER ----@param target string +---@alias chatType +---| "WHISPER" +---| "BATTLEGROUND" +---| "CHANNEL" +---| "GUILD" +---| "OFFICER" +---| "PARTY" +---| "RAID" +---| "WHISPER" +---| "target" + +---@param prefix string +---@param message string +---@param type chatType +---@param target string ---Sends a chat-like message receivable by other addons. Allows for client-to-client addon communication. Unlike with SendChatMessage, messages sent via SendAddonMessage: do not appear in receiving players' chat windows (unless an addon explicitly prints them) are not subject to strict server-side spam filtering/throttling (sending too many messages at once can still disconnect the user) are not modified if the sending character is drunk Messages are received via the CHAT_MSG_ADDON event. The client utilizes the prefix string to filter messages; only those prefixes which have been registered will be received. Prefixes can be registered using RegisterAddonMessagePrefix. There is currently no support for sending addon messages to Real ID or BattleTag friends. -function SendAddonMessage( - prefix, - message, - type, - BATTLEGROUND, - CHANNEL, - GUILD, - OFFICER, - PARTY, - RAID, - WHISPER, - target -) -end +function SendAddonMessage(prefix, message, type, target) end diff --git a/api/SetCVar.lua b/api/SetCVar.lua index 0633680..232f7e3 100644 --- a/api/SetCVar.lua +++ b/api/SetCVar.lua @@ -3,5 +3,6 @@ ---@param cvar string ---@param value any ---@param raiseEvent string +---@overload fun(cvar: string, value: any) ---Sets the value of a configuration variable function SetCVar(cvar, value, raiseEvent) end