voice: remove Guild.voiceConnection and VoiceChannel.connection

This commit is contained in:
Amish Shah
2019-04-29 19:29:16 +01:00
parent dd44647537
commit bcb0cd838b
4 changed files with 3 additions and 24 deletions

View File

@@ -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}