aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorĐỗ Văn Hoài Tuân <htuan03@gmail.com>2023-04-05 18:02:53 -0700
committerGitHub <noreply@github.com>2023-04-06 03:02:53 +0200
commit2e6c5eacf7d6f3ec92da14fb91302f490962cad5 (patch)
tree56233524dd83a8c424c525cd971c6600a83f14f1 /src
parentc9fd4040127970901aa73535217cf1df0be5bf50 (diff)
downloadVencord-2e6c5eacf7d6f3ec92da14fb91302f490962cad5.tar.gz
Vencord-2e6c5eacf7d6f3ec92da14fb91302f490962cad5.tar.bz2
Vencord-2e6c5eacf7d6f3ec92da14fb91302f490962cad5.zip
BetterFolders: Fix Close all not working (#808)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/betterFolders/index.ts4
-rw-r--r--src/utils/constants.ts4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/betterFolders/index.ts b/src/plugins/betterFolders/index.ts
index 1b6ce4e..d0e61c0 100644
--- a/src/plugins/betterFolders/index.ts
+++ b/src/plugins/betterFolders/index.ts
@@ -67,7 +67,7 @@ const settings = definePluginSettings({
export default definePlugin({
name: "BetterFolders",
description: "Shows server folders on dedicated sidebar and adds folder related improvements",
- authors: [Devs.juby],
+ authors: [Devs.juby, Devs.AutumnVN],
patches: [
{
find: '("guildsnav")',
@@ -122,7 +122,7 @@ export default definePlugin({
settings,
start() {
- const getGuildFolder = (id: string) => GuildFolderStore.guildFolders.find(f => f.guildIds.includes(id));
+ const getGuildFolder = (id: string) => GuildFolderStore.getGuildFolders().find(f => f.guildIds.includes(id));
FluxDispatcher.subscribe("CHANNEL_SELECT", this.onSwitch = data => {
if (!settings.store.closeAllFolders && !settings.store.forceOpen)
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index 6814fc7..365fd0f 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -245,5 +245,9 @@ export const Devs = /* #__PURE__*/ Object.freeze({
Dziurwa: {
name: "Dziurwa",
id: 787017887877169173n
+ },
+ AutumnVN: {
+ name: "AutumnVN",
+ id: 393694671383166998n
}
});