mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
VoiceChannel#full fix on no limit channel for joinable (#1106)
* VoiceChannel#full fix on no limit channel for joinable * Update VoiceChannel.js
This commit is contained in:
committed by
Schuyler Cebulskie
parent
f8b9bf6884
commit
93d8ec3e87
@@ -50,7 +50,7 @@ class VoiceChannel extends GuildChannel {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
get full() {
|
get full() {
|
||||||
return this.members.size >= this.userLimit;
|
return this.userLimit > 0 && this.members.size >= this.userLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user