UNPKG

detritus-client

Version:

A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.

36 lines (35 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VoiceRegion = void 0; const baseset_1 = require("../collections/baseset"); const constants_1 = require("../constants"); const basestructure_1 = require("./basestructure"); const keysVoiceRegion = new baseset_1.BaseSet([ constants_1.DiscordKeys.CUSTOM, constants_1.DiscordKeys.DEPRECATED, constants_1.DiscordKeys.ID, constants_1.DiscordKeys.NAME, constants_1.DiscordKeys.OPTIMAL, constants_1.DiscordKeys.VIP, ]); /** * Voice Region Structure * @category Structure */ class VoiceRegion extends basestructure_1.BaseStructure { constructor(client, data, isClone) { super(client, undefined, isClone); this._keys = keysVoiceRegion; this.custom = false; this.deprecated = false; this.id = ''; this.name = ''; this.optimal = false; this.vip = false; this.merge(data); } toString() { return this.name; } } exports.VoiceRegion = VoiceRegion;