Skip to content

Commit fe4130d

Browse files
authored
[Fix] Threads not getting removed from cache on THREAD_DELETE (#2708)
1 parent 200bed7 commit fe4130d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord.Net.WebSocket/DiscordSocketClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ private async Task ProcessMessageAsync(GatewayOpCode opCode, int? seq, string ty
25842584
return;
25852585
}
25862586

2587-
var thread = (SocketThreadChannel)guild.GetChannel(data.Id);
2587+
var thread = (SocketThreadChannel)guild.RemoveChannel(State, data.Id);
25882588

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

0 commit comments

Comments
 (0)