osu-api-extended
Version:
Advanced osu! api wrapper for v1 and v2, with extra stuff
31 lines • 970 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.description = void 0;
const request_1 = require("../../../../utility/request");
const request = (0, request_1.namespace)('https://osu.ppy.sh/api/v2/');
exports.description = {
auth: 1,
title: __filename,
method: 'POST',
description: 'This endpoint allows you to mark notifications read',
params: [
{
type: 'number array',
name: 'ids',
optional: false,
description: '\`\`\`id\`\`\` of notifications to be marked as read',
},
],
};
;
const name = async (ids) => {
const obj = {};
ids.forEach((r, index) => obj[`identities[${index}][object_id]`] = r);
const data = await request(`notifications/mark-read`, {
method: 'POST',
data: JSON.stringify(obj)
});
return data;
};
exports.default = name;
//# sourceMappingURL=markAsReaded.js.map
;