diff --git a/index.ts b/index.ts index d2b7a27..2bec7ed 100644 --- a/index.ts +++ b/index.ts @@ -67,7 +67,7 @@ function getEnabledPlugins() { let userpluginsCount = 0; Object.entries(Vencord.Plugins.plugins).forEach(([key, value]) => { - if (value.started) if (PluginMeta[value.name].userPlugin) userpluginsCount++; else counter++; + if (value.started) if (PluginMeta[value.name]?.userPlugin) userpluginsCount++; else counter++; }); return `${counter} (official)` + (userpluginsCount ? `, ${userpluginsCount} (userplugins)` : "");