Files
discord.js/src/structures/VoiceRegion.js
Gus Caplan 3f4cbd07dd add voice region getting (#1108)
* add voice region getting

* clean up this mess

* add docstrings

* Update VoiceRegion.js

* Update RESTMethods.js
2017-01-18 19:14:44 -05:00

51 lines
901 B
JavaScript

/**
* Represents a Discord voice region for guilds
*/
class VoiceRegion {
constructor(data) {
/**
* ID of the region
* @type {string}
*/
this.id = data.id;
/**
* Name of the region
* @type {string}
*/
this.name = data.name;
/**
* Whether the region is VIP-only
* @type {boolean}
*/
this.vip = data.vip;
/**
* Whether the region is deprecated
* @type {boolean}
*/
this.deprecated = data.deprecated;
/**
* Whether the region is optimal
* @type {boolean}
*/
this.optimal = data.optimal;
/**
* Whether the region is custom
* @type {boolean}
*/
this.custom = data.custom;
/**
* A sample hostname for what a connection might look like
* @type {string}
*/
this.sampleHostname = data.sample_hostname;
}
}
module.exports = VoiceRegion;