UNPKG

osu-api-extended

Version:

Advanced osu! api wrapper for v1 and v2, with extra stuff

36 lines 1.24 kB
"use strict"; 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: 0, title: __filename, method: 'PUT', description: 'This endpoint marks the channel as having being read up to the given \`\`\`message_id\`\`\`', params: [ { type: 'number', name: 'channel_id', options: false, optional: true, description: 'The \`\`\`channel_id\`\`\` of the channel to mark as read', }, { type: 'number', name: 'message_id', options: false, optional: true, description: 'The \`\`\`message_id\`\`\` of the message to mark as read up to', }, ], }; const name = async (channel_id, message_id) => { const data = await request(`chat/channels/${channel_id}/mark-as-read/${message_id}`, { method: 'PUT', params: { channel_id, message_id } }); return data; }; exports.default = name; //# sourceMappingURL=markAsReaded.js.map