mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 03:05:21 +09:00
.
This commit is contained in:
11
info.js
11
info.js
@@ -13,8 +13,15 @@ class InstanceActionEvent {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
static jsonSchema = {type: 'object', required: ['instanceName', 'action', 'content'], properties: {'instanceName': {type: 'string'}, 'action': {type: 'string'}, 'content': {type: 'string'}}};
|
||||
static fromJSON(json) {return new this(json.instanceName, json.action, json.content);}
|
||||
static jsonSchema = {
|
||||
type: 'object',
|
||||
required: ['instanceName', 'action', 'content'],
|
||||
properties: {'instanceName': {type: 'string'}, 'action': {type: 'string'}, 'content': {type: 'string'}}
|
||||
}
|
||||
|
||||
static fromJSON(json) {
|
||||
return new this(json.instanceName, json.action, json.content);
|
||||
}
|
||||
}
|
||||
|
||||
const plugin = {
|
||||
|
||||
Reference in New Issue
Block a user