WoW:API ComplainChat: Difference between revisions
Jump to navigation
Jump to search
(initial commit. trying to source the 1-per-minute 5-per-day comment, I know I saw a blue post it) |
m (Move page script moved page API ComplainChat to API ComplainChat without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Complain about a specific [[chat]] message to the [[Game Master|Game Masters]]. | |||
ComplainChat(lineID) | ComplainChat(lineID) | ||
ComplainChat(author, [message]) | |||
== Arguments == | == Arguments == | ||
<!-- List each argument, together with its type --> | <!-- List each argument, together with its type --> | ||
:;lineID : | :;<number> lineID : This is the eleventh argument from CHAT_MSG [[Events (API)|events]]. | ||
:;<string> author : The name of the [[player]] to complain about. | |||
:;<string> message : The [[chat]] message to complain about. | |||
< | |||
: | |||
: | |||
:The | |||
: | == Notes == | ||
* Abusing the spam-reporting API will get it protected. [http://forums.worldofwarcraft.com/thread.html?topicId=63167579&sid=1&pageNo=25] | |||
* Complaining about a [[player]] squelches further communication from the target's [[account]] for the rest of the session. [http://forums.worldofwarcraft.com/thread.html?topicId=102905050] | |||
* ''lineID'' can also be obtained from the player link. E.g. <code>local lineID = strmatch(link, ("|Hplayer:[^:]*:(%d+):.*|h")</code> - useful if using [[UIHANDLER_OnHyperlinkClick|OnHyperlinkClick]], [[UIHANDLER_OnHyperlinkEnter|OnHyperlinkEnter]], or [[UIHANDLER_OnHyperlinkLeave|OnHyperlinkLeave]]. | |||
See | == See Also == | ||
: API [[API CanComplainChat|CanComplainChat]] |
Latest revision as of 04:45, 15 August 2023
← WoW API < ComplainChat
Complain about a specific chat message to the Game Masters.
ComplainChat(lineID) ComplainChat(author, [message])
Arguments[edit]
Notes[edit]
- Abusing the spam-reporting API will get it protected. [1]
- Complaining about a player squelches further communication from the target's account for the rest of the session. [2]
- lineID can also be obtained from the player link. E.g.
local lineID = strmatch(link, ("|Hplayer:[^:]*:(%d+):.*|h")
- useful if using OnHyperlinkClick, OnHyperlinkEnter, or OnHyperlinkLeave.
See Also[edit]
- API CanComplainChat