mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor: use EventEmitter.off in favour of EventEmitter.removeListener
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user