voice: Guild.voiceConnection => Guild.voice.connection

This commit is contained in:
Amish Shah
2019-04-29 19:24:27 +01:00
parent ce1e3d2084
commit dd44647537
3 changed files with 21 additions and 1 deletions

View File

@@ -171,7 +171,7 @@ class VoiceConnection extends EventEmitter {
* @type {VoiceState}
*/
get voice() {
return this.channel.guild.voiceStates.get(this.client.user.id);
return this.channel.guild.voice;
}
/**