A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/discordjs/discord.js/commit/ee2eb7349f2467451880baaea54e02074916015f below:

Remove threads from cache upon deletion (#10883) · discordjs/discord.js@ee2eb73 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed Original file line number Diff line number Diff line change

@@ -69,6 +69,13 @@ class ChannelManager extends CachedManager {

69 69 70 70

channel?.parent?.threads?.cache.delete(id);

71 71

this.cache.delete(id);

72 + 73 +

if (channel?.threads) {

74 +

for (const threadId of channel.threads.cache.keys()) {

75 +

this.cache.delete(threadId);

76 +

channel.guild?.channels.cache.delete(threadId);

77 +

}

78 +

}

72 79

}

73 80 74 81

/**

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4