C_ReportSystem .OpenReportPlayerDialog
Jump to navigation
Jump to search
C_ReportSystem.SendReport |
+ 9.2.5 | ||
C_ReportSystem.OpenReportPlayerDialog |
+ 8.2.0 | ||
C_ReportSystem.SendReportPlayer |
+ 8.1.5 | ||
C_ChatInfo.ReportPlayer |
+ 8.0.1 |
Opens the dialog for reporting a player.
C_ReportSystem.OpenReportPlayerDialog(reportType, playerName [, playerLocation])
Arguments
- reportType
- string - One of the strings found in
PLAYER_REPORT_TYPE
- playerName
- string - Name of the player being reported
- playerLocation
- PlayerLocationMixin🔗
⊞Const PLAYER_REPORT_TYPE
⊟
Constant | Value |
---|---|
PLAYER_REPORT_TYPE_SPAM | spam |
PLAYER_REPORT_TYPE_LANGUAGE | language |
PLAYER_REPORT_TYPE_ABUSE | abuse |
PLAYER_REPORT_TYPE_BAD_PLAYER_NAME | badplayername |
PLAYER_REPORT_TYPE_BAD_GUILD_NAME | badguildname |
PLAYER_REPORT_TYPE_CHEATING | cheater |
PLAYER_REPORT_TYPE_BAD_BATTLEPET_NAME | badbattlepetname |
PLAYER_REPORT_TYPE_BAD_PET_NAME | badpetname |
Details
- This function is not protected and therefore available to Addons, unlike C_ReportSystem.InitiateReportPlayer and C_ReportSystem.SendReportPlayer
- This reporting restriction was added because AddOn BadBoy allegedly sent out a number of false positives. [2]
- Triggers OPEN_REPORT_PLAYER once the window is open
Example
- Opens the spam report dialog for the current target.
/run C_ReportSystem.OpenReportPlayerDialog(PLAYER_REPORT_TYPE_SPAM, UnitName("target"), PlayerLocation:CreateFromUnit("target"))
Patch changes
Patch 8.2.0 (2019-06-25): Added.
References
- ^ Constants.lua, patch 8.2.0, near line 776, archived at Townlong-Yak
- ^ IRC log for #wowuidev on 20190424 (2019-04-24).