From a04094f0ff648dc12997c5dd13132fcc3ce2a161 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Tue, 25 Oct 2016 19:59:22 -0400 Subject: [PATCH] Rename VoiceConnection.disconnected event -> disconnect --- src/client/voice/ClientVoiceManager.js | 2 +- src/client/voice/VoiceConnection.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/voice/ClientVoiceManager.js b/src/client/voice/ClientVoiceManager.js index 6a572edf1..97cef5288 100644 --- a/src/client/voice/ClientVoiceManager.js +++ b/src/client/voice/ClientVoiceManager.js @@ -243,7 +243,7 @@ class ClientVoiceManager { this.connections.set(channel.guild.id, voiceConnection); voiceConnection.once('ready', () => resolve(voiceConnection)); voiceConnection.once('error', reject); - voiceConnection.once('disconnected', () => this.connections.delete(channel.guild.id)); + voiceConnection.once('disconnect', () => this.connections.delete(channel.guild.id)); }); }); } diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index d3fc2149f..be3fe798f 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -104,7 +104,7 @@ class VoiceConnection extends EventEmitter { } /** - * Disconnect the voice connection, causing a disconnected and closing event to be emitted. + * Disconnect the voice connection, causing a disconnect and closing event to be emitted. */ disconnect() { this.emit('closing'); @@ -119,9 +119,9 @@ class VoiceConnection extends EventEmitter { }); /** * Emitted when the voice connection disconnects - * @event VoiceConnection#disconnected + * @event VoiceConnection#disconnect */ - this.emit('disconnected'); + this.emit('disconnect'); } /**