diff --git a/package-lock.json b/package-lock.json index be41b0a..9b76a33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@ulms/api-clients", - "version": "4.11.0", + "version": "4.12.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0799266..6bec237 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ulms/api-clients", - "version": "4.11.0", + "version": "4.12.0", "description": "JavaScript API clients for ULMS platform", "keywords": [], "homepage": "https://github.com/netology-group/ulms-api-clients-js#readme", diff --git a/src/event.js b/src/event.js index 895eee5..4a3b7ab 100644 --- a/src/event.js +++ b/src/event.js @@ -155,6 +155,19 @@ class Event extends Service { return this._rpc.send('agent.update', params) } + /** + * List bans in room + * @param room_id + * @returns {Promise} + */ + listBans (room_id) { + const params = { + room_id + } + + return this._rpc.send('ban.list', params) + } + /** * Create event * @param room_id