mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Move channel type to constructors
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user