User.report()

async User.report()[source]

Bound method report of User.

Use as a shortcut for:

client.report_user(user_id, reason, message)
Parameters:
  • reason (ReportReason | str, optional) – The reason for reporting. Defaults to SPAM.

  • message (str, optional) – Additional explanatory text or details about the report. Defaults to “”.

Example

await user.report(enums.ReportReason.SPAM)
Returns:

bool – On success, True is returned.