-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
---@meta _ | ||
|
||
---@class ChatThrottleLib | ||
---[Documentation](https://warcraft.wiki.gg/wiki/ChatThrottleLib) | ||
ChatThrottleLib = {} | ||
|
||
---@param prio string | ||
---@param prefix string | ||
---@param text string | ||
---@param chattype string | ||
---@param languageID? number | ||
---@param destination? string | ||
---@param queueName? string | ||
---@param callbackFn? function | ||
---@param callbackArg? any | ||
---[Documentation](https://warcraft.wiki.gg/wiki/ChatThrottleLib#ChatThrottleLib:SendChatMessage) | ||
function ChatThrottleLib:SendChatMessage(prio, prefix, text, chattype, languageID, destination, queueName, callbackFn, callbackArg) end | ||
|
||
---@param prio string | ||
---@param prefix string | ||
---@param text string | ||
---@param chattype string | ||
---@param target? string | ||
---@param queueName? string | ||
---@param callbackFn? function | ||
---@param callbackArg? any | ||
---[Documentation](https://warcraft.wiki.gg/wiki/ChatThrottleLib#ChatThrottleLib:SendAddonMessage) | ||
function ChatThrottleLib:SendAddonMessage(prio, prefix, text, chattype, target, queueName, callbackFn, callbackArg) end | ||
|
||
---@param prio string | ||
---@param prefix string | ||
---@param text string | ||
---@param chattype string | ||
---@param target? string | ||
---@param queueName? string | ||
---@param callbackFn? function | ||
---@param callbackArg? any | ||
function ChatThrottleLib:SendAddonMessageLogged(prio, prefix, text, chattype, target, queueName, callbackFn, callbackArg) end | ||
|
||
---@param prio string | ||
---@param prefix string | ||
---@param text string | ||
---@param chattype string must be WHISPER | ||
---@param gameAccountID number | ||
---@param queueName? string | ||
---@param callbackFn? function | ||
---@param callbackArg? any | ||
function ChatThrottleLib:BNSendGameData(prio, prefix, text, chattype, gameAccountID, queueName, callbackFn, callbackArg) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
ChatThrottleLib:SendChatMessage("NORMAL", "someprefix", "hello world", "SAY") | ||
ChatThrottleLib:SendChatMessage("NORMAL", "someprefix", "some dwarfish", "SAY", 6) | ||
|
||
ChatThrottleLib:SendAddonMessage("BULK", "someprefix", "hello world", "PARTY") | ||
ChatThrottleLib:SendAddonMessageLogged("NORMAL", "someprefix", "hello world", "PARTY") | ||
|
||
ChatThrottleLib:BNSendGameData("NORMAL", "someprefix", "hello world", "WHISPER", 123) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters