diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.EventHandling.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.EventHandling.cs index fdb57e7e..352f52b7 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.EventHandling.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.EventHandling.cs @@ -1586,14 +1586,7 @@ public partial class DiscordSocketClient if (isCached) { - var endpoint = data.Endpoint; - - //Only strip out the port if the endpoint contains it - var portBegin = endpoint.LastIndexOf(':'); - if (portBegin > 0) - endpoint = endpoint.Substring(0, portBegin); - - var _ = guild.FinishConnectAudio(endpoint, data.Token).ConfigureAwait(false); + var _ = guild.FinishConnectAudio(data.Endpoint, data.Token).ConfigureAwait(false); } else {