refactor: use EventEmitter.off in favour of EventEmitter.removeListener

This commit is contained in:
NotSugden
2020-02-26 20:38:26 +00:00
parent 9953b4d267
commit 2a36dff43a
8 changed files with 28 additions and 28 deletions

View File

@@ -98,7 +98,7 @@ class ClientVoiceManager {
connection.once('authenticated', () => {
connection.once('ready', () => {
resolve(connection);
connection.removeListener('error', reject);
connection.off('error', reject);
});
connection.once('disconnect', () => this.connections.delete(channel.guild.id));
});