49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
// Metro module 5885 (f5886).
|
|
import { Endpoints } from "../../Constants";
|
|
import { HTTP } from "../../_bundle/sendRequest";
|
|
export function reportFalsePositive(a0, a1, a2, a3) {
|
|
return HTTP.post({
|
|
url: Endpoints.EXPLICIT_MEDIA_REPORT_FALSE_POSITIVE,
|
|
body: {
|
|
channel_id: a0,
|
|
message_id: a1,
|
|
attachment_ids: a2,
|
|
embed_ids: a3
|
|
},
|
|
rejectWithError: false
|
|
});
|
|
}
|
|
export function reportFailedSendFalsePositive(a0, a1, a2, a3) {
|
|
return HTTP.post({
|
|
url: Endpoints.EXPLICIT_MEDIA_SENDER_REPORT_FALSE_POSITIVE,
|
|
body: {
|
|
channel_id: a0,
|
|
message_id: a1,
|
|
attachment_ids: a2,
|
|
filenames: a3
|
|
},
|
|
rejectWithError: false
|
|
});
|
|
}
|
|
export function sendMessagesForScanning(a0, a1) {
|
|
return HTTP.patch({
|
|
url: Endpoints.EXPLICIT_MEDIA_SCAN_MESSAGES(a0),
|
|
body: {
|
|
message_ids: a1
|
|
},
|
|
rejectWithError: false
|
|
});
|
|
}
|
|
export function sendMultiChannelMessagesForScanning(a0) {
|
|
return HTTP.patch({
|
|
url: Endpoints.EXPLICIT_MEDIA_SCAN_MULTI_CHANNEL_MESSAGES,
|
|
body: {
|
|
messages: a0.map((item) => ({
|
|
channel_id: item.channel_id,
|
|
message_id: item.id
|
|
}))
|
|
},
|
|
rejectWithError: false
|
|
});
|
|
}
|