qaut.js 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qaut.js",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Official QauT bot framework for building bots and integrations.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.js CHANGED
@@ -544,7 +544,8 @@ function idsOf(values) { return Array.isArray(values) ? values.map(idOf) : [idOf
544
544
 
545
545
  Object.defineProperty(User.prototype, 'displayName', {
546
546
  configurable: true,
547
- get() { return this.globalName || this.username || this.id; }
547
+ get() { return this._displayName || this.globalName || this.username || this.id; },
548
+ set(value) { this._displayName = value; }
548
549
  });
549
550
 
550
551
  module.exports = {