Make groupAction take an arbitrary parameter.
This commit is contained in:
+3
-4
@@ -712,16 +712,15 @@ ServerConnection.prototype.userMessage = function(kind, dest, value, noecho) {
|
|||||||
* groupAction sends a request to act on the current group.
|
* groupAction sends a request to act on the current group.
|
||||||
*
|
*
|
||||||
* @param {string} kind
|
* @param {string} kind
|
||||||
* - One of 'clearchat', 'lock', 'unlock', 'record' or 'unrecord'.
|
* @param {any} [data]
|
||||||
* @param {string} [message] - An optional user-readable message.
|
|
||||||
*/
|
*/
|
||||||
ServerConnection.prototype.groupAction = function(kind, message) {
|
ServerConnection.prototype.groupAction = function(kind, data) {
|
||||||
this.send({
|
this.send({
|
||||||
type: 'groupaction',
|
type: 'groupaction',
|
||||||
source: this.id,
|
source: this.id,
|
||||||
kind: kind,
|
kind: kind,
|
||||||
username: this.username,
|
username: this.username,
|
||||||
value: message,
|
value: data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user