GuildPreviewEmoji.js (573B)
1 'use strict'; 2 3 const BaseGuildEmoji = require('./BaseGuildEmoji'); 4 5 /** 6 * Represents an instance of an emoji belonging to a public guild obtained through Discord's preview endpoint. 7 * @extends {BaseGuildEmoji} 8 */ 9 class GuildPreviewEmoji extends BaseGuildEmoji { 10 /** 11 * The public guild this emoji is part of 12 * @type {GuildPreview} 13 * @name GuildPreviewEmoji#guild 14 */ 15 16 /** 17 * Set of roles this emoji is active for 18 * @type {Set<Snowflake>} 19 * @readonly 20 */ 21 get roles() { 22 return new Set(this._roles); 23 } 24 } 25 26 module.exports = GuildPreviewEmoji;