@evolvejs/core
Version:
An advanced Discord API wrapper with TS and JS support
29 lines (28 loc) • 887 B
JavaScript
"use strict";
/* eslint-disable no-mixed-spaces-and-tabs */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CategoryChannel = void 0;
const __1 = require("../..");
const objex_1 = require("@evolvejs/objex");
const Channel_1 = require("./Channel");
class CategoryChannel extends Channel_1.Channel {
constructor(data, client) {
super(data.id, __1.CHANNELTYPES.Category, client);
this.overwrites = new objex_1.Objex();
Object.defineProperty(this, "data", {
value: data,
enumerable: false,
writable: false,
});
this._handle();
}
_handle() {
if (!this.data)
return;
this.position = this.data.position;
this.name = this.data.name;
this.guildId = this.data.guild_id;
return this;
}
}
exports.CategoryChannel = CategoryChannel;