Add jsdoc for powerlevels

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-15 16:58:29 +05:30
parent 5873ab63ba
commit e406aa6e45

View file

@ -413,6 +413,11 @@ export class BaseRoom extends EventEmitter {
}
}
/**
* Get the PowerLevels of the room.
* Always subscribe to the value returned by this method.
* @returns {RetainedObservableValue} PowerLevels of the room
*/
async observePowerLevels() {
if (this._powerLevelLoading) { await this._powerLevelLoading; }
let observable = this._powerLevels;