mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 17:36:23 +00:00
add more stuff to support helper
This commit is contained in:
parent
bbf43c3073
commit
d2c1711301
1 changed files with 6 additions and 1 deletions
|
@ -60,6 +60,7 @@ const TrustedRolesIds = [
|
||||||
const AsyncFunction = async function () { }.constructor;
|
const AsyncFunction = async function () { }.constructor;
|
||||||
|
|
||||||
const ShowCurrentGame = getUserSettingLazy<boolean>("status", "showCurrentGame")!;
|
const ShowCurrentGame = getUserSettingLazy<boolean>("status", "showCurrentGame")!;
|
||||||
|
const ShowEmbeds = getUserSettingLazy<boolean>("textAndImages", "renderEmbeds")!;
|
||||||
|
|
||||||
async function forceUpdate() {
|
async function forceUpdate() {
|
||||||
const outdated = await checkForUpdates();
|
const outdated = await checkForUpdates();
|
||||||
|
@ -97,14 +98,18 @@ async function generateDebugInfoMessage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const commonIssues = {
|
const commonIssues = {
|
||||||
"NoRPC enabled": Vencord.Plugins.isPluginEnabled("NoRPC"),
|
|
||||||
"Activity Sharing disabled": tryOrElse(() => !ShowCurrentGame.getSetting(), false),
|
"Activity Sharing disabled": tryOrElse(() => !ShowCurrentGame.getSetting(), false),
|
||||||
|
"Link embeds disabled": tryOrElse(() => !ShowEmbeds.getSetting(), false),
|
||||||
"Vencord DevBuild": !IS_STANDALONE,
|
"Vencord DevBuild": !IS_STANDALONE,
|
||||||
"Has UserPlugins": Object.values(PluginMeta).some(m => m.userPlugin),
|
"Has UserPlugins": Object.values(PluginMeta).some(m => m.userPlugin),
|
||||||
"More than two weeks out of date": BUILD_TIMESTAMP < Date.now() - 12096e5,
|
"More than two weeks out of date": BUILD_TIMESTAMP < Date.now() - 12096e5,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const possiblyUnwantedPlugins = ["NoRPC", "NoProfileThemes", "NoMosaic", "Moyai"].filter(Vencord.Plugins.isPluginEnabled);
|
||||||
|
|
||||||
let content = `>>> ${Object.entries(info).map(([k, v]) => `**${k}**: ${v}`).join("\n")}`;
|
let content = `>>> ${Object.entries(info).map(([k, v]) => `**${k}**: ${v}`).join("\n")}`;
|
||||||
|
if (possiblyUnwantedPlugins.length)
|
||||||
|
content += "\n" + `⚠️ ${possiblyUnwantedPlugins.join(", ")} enabled`;
|
||||||
content += "\n" + Object.entries(commonIssues)
|
content += "\n" + Object.entries(commonIssues)
|
||||||
.filter(([, v]) => v).map(([k]) => `⚠️ ${k}`)
|
.filter(([, v]) => v).map(([k]) => `⚠️ ${k}`)
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
Loading…
Reference in a new issue