diff options
author | Lewis Crichton <lewi@lewisakura.moe> | 2023-09-08 02:41:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 03:41:30 +0200 |
commit | f2a22c5e57515fd6fc41cece083444d4cbc11ebc (patch) | |
tree | 542b3000f6fcd0a81483ad4be897cbe8ce323be1 /src/plugins | |
parent | 5e3a485edcea44bd4b79d0c68665613486fcb0df (diff) | |
download | Vencord-f2a22c5e57515fd6fc41cece083444d4cbc11ebc.tar.gz Vencord-f2a22c5e57515fd6fc41cece083444d4cbc11ebc.tar.bz2 Vencord-f2a22c5e57515fd6fc41cece083444d4cbc11ebc.zip |
feat: crash info in /vencord-debug (#1714)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/supportHelper.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/supportHelper.tsx b/src/plugins/supportHelper.tsx index 4691c0e..f36cc0f 100644 --- a/src/plugins/supportHelper.tsx +++ b/src/plugins/supportHelper.tsx @@ -48,7 +48,7 @@ export default definePlugin({ name: "vencord-debug", description: "Send Vencord Debug info", predicate: ctx => AllowedChannelIds.includes(ctx.channel.id), - execute() { + async execute() { const { RELEASE_CHANNEL } = window.GLOBAL_ENV; const client = (() => { @@ -75,6 +75,10 @@ export default definePlugin({ OpenAsar: "openasar" in window, }; + if (IS_DISCORD_DESKTOP) { + info["Last Crash Reason"] = (await DiscordNative.processUtils.getLastCrash())?.rendererCrashReason ?? "N/A"; + } + const debugInfo = ` **Vencord Debug Info** >>> ${Object.entries(info).map(([k, v]) => `${k}: ${v}`).join("\n")} |