mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
refactor(GuildPreviewEmoji): make roles an array (#5720)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user