mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
voice: remove Guild.voiceConnection and VoiceChannel.connection
This commit is contained in:
@@ -42,17 +42,6 @@ class VoiceChannel extends GuildChannel {
|
||||
return coll;
|
||||
}
|
||||
|
||||
/**
|
||||
* The voice connection for this voice channel, if the client is connected
|
||||
* @type {?VoiceConnection}
|
||||
* @readonly
|
||||
*/
|
||||
get connection() {
|
||||
const connection = this.guild.voiceConnection;
|
||||
if (connection && connection.channel.id === this.id) return connection;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the voice channel is full
|
||||
* @type {boolean}
|
||||
|
||||
Reference in New Issue
Block a user