@evolvejs/core
Version:
An advanced Discord API wrapper with TS and JS support
18 lines (17 loc) • 645 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GuildEmojiEvents = void 0;
const BaseEvent_1 = require("./BaseEvent");
class GuildEmojiEvents extends BaseEvent_1.BaseEvent {
constructor(client, emoji, guild, shard) {
super(shard, client);
this.emoji = emoji;
this.guild = guild;
this.guild = new (this.client.structures.get("Guild"))(guild.data, client);
for (const [k, v] of emoji) {
this.emoji.delete(k);
this.emoji.set(k, new (this.client.structures.get("Emoji"))(v.data));
}
}
}
exports.GuildEmojiEvents = GuildEmojiEvents;