From cef69fa6c2e60a7201006f9abe4ef941bdca8fa2 Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 28 Jun 2022 21:54:15 -0500 Subject: [PATCH] Fix possible event memory leak --- utils/soundplayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/soundplayer.js b/utils/soundplayer.js index 54aa9b9..09cd017 100644 --- a/utils/soundplayer.js +++ b/utils/soundplayer.js @@ -160,7 +160,7 @@ export async function nextSong(client, options, connection, track, info, music, // no-op } } - connection.removeAllListeners("error"); + connection.removeAllListeners("exception"); connection.removeAllListeners("end"); connection.playTrack({ track }); players.set(voiceChannel.guild.id, { player: connection, type: music ? "music" : "sound", host: host, voiceChannel: voiceChannel, originalChannel: options.channel, loop, shuffle, playMessage: playingMessage });