Initial commit
This commit is contained in:
27
src/structures/GuildPreviewEmoji.js
Normal file
27
src/structures/GuildPreviewEmoji.js
Normal file
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
const BaseGuildEmoji = require('./BaseGuildEmoji');
|
||||
|
||||
/**
|
||||
* Represents an instance of an emoji belonging to a public guild obtained through Discord's preview endpoint.
|
||||
* @extends {BaseGuildEmoji}
|
||||
*/
|
||||
class GuildPreviewEmoji extends BaseGuildEmoji {
|
||||
/**
|
||||
* The public guild this emoji is part of
|
||||
* @type {GuildPreview}
|
||||
* @name GuildPreviewEmoji#guild
|
||||
*/
|
||||
|
||||
constructor(client, data, guild) {
|
||||
super(client, data, guild);
|
||||
|
||||
/**
|
||||
* The roles this emoji is active for
|
||||
* @type {Snowflake[]}
|
||||
*/
|
||||
this.roles = data.roles;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = GuildPreviewEmoji;
|
||||
Reference in New Issue
Block a user