Merge branch 'dev' of https://github.com/Vendicated/Vencord into discord-types

This commit is contained in:
ryan-0324 2024-06-17 18:17:00 -04:00
commit 242367f78c
2 changed files with 12 additions and 1 deletions

View file

@ -183,7 +183,7 @@ export default definePlugin({
patchedSettings: new WeakSet(),
addSettings(elements: any[], element: { header?: string; settings: string[]; }, sectionTypes: SectionTypes) {
if (this.patchedSettings.has(elements) || !this.isRightSpot(element)) return;
if (this.patchedSettings.has(elements)) return;
this.patchedSettings.add(elements);

View file

@ -42,7 +42,18 @@ const subscribedFluxEventsPlugins = new Set<string>();
const pluginsValues = Object.values(Plugins);
const settings = Settings.plugins;
const forceDisabled = new Set([
"MessageLogger",
"ShowHiddenChannels",
"MoreUserTags",
"Decor",
"IgnoreActivities",
"NoBlockedMessages",
"BetterFolders",
"NoPendingCount"
]);
export function isPluginEnabled(pluginName: string) {
if (forceDisabled.has(pluginName)) return false;
return (
Plugins[pluginName]?.required ||
Plugins[pluginName]?.isDependency ||