UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

16 lines (15 loc) 569 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GuildRoleEvents = void 0; const BaseEvent_1 = require("./BaseEvent"); class GuildRoleEvents extends BaseEvent_1.BaseEvent { constructor(client, role, guild, shard) { super(shard, client); this.role = role; this.guild = guild; if (role) this.role = new (this.client.structures.get("Role"))(role.data); this.guild = new (this.client.structures.get("Guild"))(guild.data, client); } } exports.GuildRoleEvents = GuildRoleEvents;