sendReport
Báo xấu
api.sendReport(options, threadId[, type])
Parameters
options
SendReportOptionsreason
ReportReasoncontent
string?Nội dung báo xấu, chỉ cần nếu reason là
ReportReason.Other
threadId
stringtype
ThreadType?loại thread, mặc định là người dùng
Return
Promise<SendReportResponse>
Types
export enum ReportReason {
Sensitive = 1,
Annoy = 2,
Fraud = 3,
Other = 0,
}
export type SendReportOptions =
| {
reason: ReportReason.Other;
content: string;
}
| {
reason: Exclude<ReportReason, ReportReason.Other>;
};
export type SendReportResponse = {
reportId: string;
};Examples
Báo xấu người dùng
Related
Last updated