diff --git a/src/structures/Role.js b/src/structures/Role.js index d5fc8beeef2c..e701b5be18d0 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -32,6 +32,12 @@ class Role extends Base { */ this.unicodeEmoji = null; + /** + * Whether the role has been deleted + * @type {boolean} + */ + this.deleted = false; + if (data) this._patch(data); } @@ -97,12 +103,6 @@ class Role extends Base { this.mentionable = data.mentionable; } - /** - * Whether the role has been deleted - * @type {boolean} - */ - this.deleted = false; - if ('icon' in data) this.icon = data.icon; if ('unicode_emoji' in data) this.unicodeEmoji = data.unicode_emoji;