matrix-bot-sdk
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -50,2 +50,8 @@ /// <reference types="node" /> | ||
/** | ||
* Gets the joined members in a room. The client must be in the room to make this request. | ||
* @param {string} roomId The room ID to get the joined members of. | ||
* @returns {Promise<string>} The joined user IDs in the room | ||
*/ | ||
getJoinedRoomMembers(roomId: string): Promise<string>; | ||
/** | ||
* Starts syncing the client with an optional filter | ||
@@ -52,0 +58,0 @@ * @param {*} filter The filter to use, or null for none |
@@ -73,2 +73,12 @@ "use strict"; | ||
/** | ||
* Gets the joined members in a room. The client must be in the room to make this request. | ||
* @param {string} roomId The room ID to get the joined members of. | ||
* @returns {Promise<string>} The joined user IDs in the room | ||
*/ | ||
getJoinedRoomMembers(roomId) { | ||
return this.do("GET", "/_matrix/client/r0/room/" + roomId + "/joined_members").then(response => { | ||
return response['joined']; | ||
}); | ||
} | ||
/** | ||
* Starts syncing the client with an optional filter | ||
@@ -75,0 +85,0 @@ * @param {*} filter The filter to use, or null for none |
{ | ||
"name": "matrix-bot-sdk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A lightweight version of the matrix-js-sdk intended for bots", | ||
@@ -5,0 +5,0 @@ "repository": { |
# matrix-js-bot-sdk | ||
[![npm version](https://badge.fury.io/js/matrix-bot-sdk.svg)](https://www.npmjs.com/package/matrix-bot-sdk) | ||
[![TravisCI badge](https://travis-ci.org/turt2live/matrix-bot-sdk.svg?branch=master)](https://travis-ci.org/turt2live/matrix-bot-sdk) | ||
[![TravisCI badge](https://travis-ci.org/turt2live/matrix-js-bot-sdk.svg?branch=master)](https://travis-ci.org/turt2live/matrix-js-bot-sdk) | ||
A lightweight version of the matrix-js-sdk intended for bots | ||
A lightweight version of the matrix-js-sdk intended for bots. For help and support, visit [#matrix-bot-sdk:t2bot.io](https://matrix.to/#/#matrix-bot-sdk:t2bot.io) | ||
@@ -8,0 +8,0 @@ # Installing |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58686
675