API C_ReportSystem.OpenReportPlayerDialog

From Wowpedia
Jump to: navigation, search

Opens a dialog for reporting a player.

C_ReportSystem.OpenReportPlayerDialog("reportType", "playerName" [, playerLocation])

Arguments

reportType 
string - PLAYER_REPORT_TYPE
playerName 
string
playerLocation 
table - PlayerLocationMixin (optional)
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

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

See also

References

  1. ^ IRC #wowuidev 2019-04-24