UNPKG

osu-api-extended

Version:

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

51 lines 1.66 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: 'GET', description: 'Return chat messages for a specific channel', params: [ { type: 'number', name: 'channel_id', optional: false, description: 'id of the channel', }, { name: 'object', params: [ { type: 'number', name: 'limit', optional: true, description: 'Maximum number of results (Max 50)', }, { type: 'number', name: 'since', optional: true, description: 'Messages after the specified message id will be returned', }, { type: 'number', name: 'until', optional: true, description: 'Messages up to but not including the specified message id will be returned', }, ] }, ], }; const name = async (channel_id, object) => { const data = await request(`chat/channels/${channel_id}/messages`, { method: 'GET', params: object, }); return data; }; exports.default = name; //# sourceMappingURL=list.js.map