hackchat-engine 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -110,7 +110,7 @@ The client extends `EventEmitter`. You can listen for the following events:
110
110
  | `emote` | `EmoteStruct` | A user sent a `/me` emote. |
111
111
  | `warning` | `WarningStruct` | Server sent a warning (e.g., rate limit). |
112
112
  | `gotCaptcha` | `CaptchaStruct` | Server requires a captcha solution. |
113
- | `hackAttempt` | `HackAttemptStruct` | A user attempted a disallowed action (admin alerts). |
113
+ | `hackAttempt` | `HackAttemptStruct` | A client upgrade request attempt. |
114
114
  | `updateMessage` | `UpdateMessageStruct` | A previously sent message was edited or deleted. |
115
115
 
116
116
  ---
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "lintfix": "eslint --fix --ignore-path .gitignore .",
60
60
  "test": "echo \"Error: no test specified\" && exit 1"
61
61
  },
62
- "version": "1.1.11"
62
+ "version": "1.1.13"
63
63
  }
@@ -45,6 +45,12 @@ class MessageStruct {
45
45
  */
46
46
  this.content = data.text;
47
47
 
48
+ /**
49
+ * ID of message
50
+ * @type {string}
51
+ */
52
+ this.id = data.customId || data.id;
53
+
48
54
  /**
49
55
  * Creation timestamp
50
56
  * @type {number}
package/util/Constants.js CHANGED
@@ -109,6 +109,7 @@ export const Events = {
109
109
  HACK_ATTEMPT: 'hackAttempt',
110
110
  SIGN_MESSAGE: 'signMessage',
111
111
  SIGN_TRANSACTION: 'signTransaction',
112
+ UPDATE_MESSAGE: 'updateMessage',
112
113
  WALLET_INFO: 'walletInfo',
113
114
  };
114
115