Add participantRoleChanged event to external API (#6573)
* Add participantRoleChanged event to external API * Update API documentation * Remove unneeded whitespace * Remove more unneeded whitespace * Fix jsdoc formatting * Fix jsdoc formatting
This commit is contained in:
@@ -439,6 +439,22 @@ class API {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify external application (if API is enabled) that the user role
|
||||
* has changed.
|
||||
*
|
||||
* @param {string} id - User id.
|
||||
* @param {string} role - The new user role.
|
||||
* @returns {void}
|
||||
*/
|
||||
notifyUserRoleChanged(id: string, role: string) {
|
||||
this._sendEvent({
|
||||
name: 'participant-role-changed',
|
||||
id,
|
||||
role
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify external application (if API is enabled) that user changed their
|
||||
* avatar.
|
||||
|
||||
Reference in New Issue
Block a user