Skip to content

Commit

Permalink
[Fix] Threads not getting removed from cache on THREAD_DELETE (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 committed Jun 27, 2023
1 parent 200bed7 commit fe4130d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.WebSocket/DiscordSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2584,7 +2584,7 @@ private async Task ProcessMessageAsync(GatewayOpCode opCode, int? seq, string ty
return;
}

var thread = (SocketThreadChannel)guild.GetChannel(data.Id);
var thread = (SocketThreadChannel)guild.RemoveChannel(State, data.Id);

var cacheable = new Cacheable<SocketThreadChannel, ulong>(thread, data.Id, thread != null, null);

Expand Down

0 comments on commit fe4130d

Please sign in to comment.