Skip to content

Commit

Permalink
fix(GuildEmoji): Cache restricted roles and author data (#6675)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Sep 26, 2021
1 parent d3da833 commit 60b8ba6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/structures/GuildEmoji.js
Expand Up @@ -31,6 +31,8 @@ class GuildEmoji extends BaseGuildEmoji {
* @private
*/
Object.defineProperty(this, '_roles', { value: [], writable: true });

this._patch(data);
}

/**
Expand Down

0 comments on commit 60b8ba6

Please sign in to comment.