Move channel type to constructors

This commit is contained in:
Schuyler Cebulskie
2016-09-10 12:39:28 -04:00
parent 3f52ba27c9
commit 91a7d4f80e
4 changed files with 5 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ class VoiceChannel extends GuildChannel {
* @type {Collection<string, GuildMember>}
*/
this.members = new Collection();
this.type = 'voice';
}
setup(data) {
@@ -30,8 +32,6 @@ class VoiceChannel extends GuildChannel {
* @type {number}
*/
this.userLimit = data.user_limit;
this.type = 'voice';
}
/**