"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Channel = void 0; const Message_1 = require("./Message"); const Base_1 = require("./Base"); class Channel extends Base_1.Base { /** * channel id */ id; /** * channel's guild id */ guild_id; /** * channel name */ name; /** * channel type (guild text: 0, guild voice: 2, dm: 1, group dm: 3) */ type; /** * (text) channel topic */ topic; /** * (voice) bitrate of voice channel */ bitrate; /** * (voice) user limit of voice channel (0 for none) */ user_limit; /** * position of channel in channel list */ position; /** * (voice) channel's voice states */ voice_states; /** * (text) channel's messages */ messages; constructor(client, props) { super(client); Object.assign(this, props); this.id = props.id; this.guild_id = props.guild_id; this.name = props.name; this.type = props.type; this.topic = props.topic; this.bitrate = props.bitrate; this.user_limit = props.user_limit; this.position = props.position; this.voice_states = props.voice_states; this.messages = props.messages?.map((messgeData) => new Message_1.Message(client, messgeData)); } } exports.Channel = Channel;