UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

33 lines (32 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageReaction = void 0; /* eslint-disable no-mixed-spaces-and-tabs */ const __1 = require("../../"); class MessageReaction { constructor(data, client) { Object.defineProperty(this, "data", { value: data, enumerable: false, writable: false, }); Object.defineProperty(this, "client", { value: client, enumerable: false, writable: false, }); this._handle(); } _handle() { if (!this.data) return; this.message = new __1.Message(this.data.message, this.client); this.channel = new __1.TextChannel(this.data.channel, this.client); this.emoji = new __1.Emoji(this.data.emoji); this.user = new __1.User(this.data.user); this.member = new __1.GuildMember(this.data.member); this.guild = new __1.Guild(this.data.guild, this.client); return this; } } exports.MessageReaction = MessageReaction;