revbot.js 0.1.1 → 0.1.2

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/dist/index.mjs CHANGED
@@ -637,6 +637,10 @@ var User = class extends Base {
637
637
  get createdAt() {
638
638
  return UUID.timestampOf(this.id);
639
639
  }
640
+ get isOwner() {
641
+ var _a;
642
+ return this.id === ((_a = this.client.user) == null ? void 0 : _a.owner);
643
+ }
640
644
  /**
641
645
  * Gets the creation timestamp of the user in milliseconds.
642
646
  *
@@ -3157,7 +3161,7 @@ import { EventEmitter } from "node:events";
3157
3161
  import { AxiosError } from "axios";
3158
3162
 
3159
3163
  // package.json
3160
- var version = "0.1.1";
3164
+ var version = "0.1.2";
3161
3165
 
3162
3166
  // src/rest/restUtils/rateLimitQueue.ts
3163
3167
  import axios3 from "axios";
@@ -4054,10 +4058,14 @@ _events = new WeakMap();
4054
4058
 
4055
4059
  // src/struct/clientUser.ts
4056
4060
  var ClientUser = class extends User {
4057
- constructor() {
4058
- super(...arguments);
4061
+ constructor(client3, data) {
4062
+ var _a;
4063
+ super(client3, data);
4059
4064
  /** The notes channel associated with the client user, if any. */
4060
4065
  this.notes = null;
4066
+ this.owner = null;
4067
+ this._patch(data);
4068
+ this.owner = ((_a = data.bot) == null ? void 0 : _a.owner) || null;
4061
4069
  }
4062
4070
  /**
4063
4071
  * Updates the username of the client user.