refactor(GuildPreviewEmoji): make roles an array (#5720)

This commit is contained in:
Jan
2021-06-13 20:30:20 +02:00
committed by GitHub
parent 02693bc02f
commit 4dbcaf76c3
4 changed files with 24 additions and 22 deletions

View File

@@ -13,13 +13,14 @@ class GuildPreviewEmoji extends BaseGuildEmoji {
* @name GuildPreviewEmoji#guild
*/
/**
* Set of roles this emoji is active for
* @type {Set<Snowflake>}
* @readonly
*/
get roles() {
return new Set(this._roles);
constructor(client, data, guild) {
super(client, data, guild);
/**
* The roles this emoji is active for
* @type {Snowflake[]}
*/
this.roles = data.roles;
}
}