diff options
Diffstat (limited to 'src/plugins/supportHelper.tsx')
-rw-r--r-- | src/plugins/supportHelper.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/supportHelper.tsx b/src/plugins/supportHelper.tsx index 92a5f84..21d9059 100644 --- a/src/plugins/supportHelper.tsx +++ b/src/plugins/supportHelper.tsx @@ -44,11 +44,18 @@ export default definePlugin({ execute() { const { RELEASE_CHANNEL } = window.GLOBAL_ENV; + const client = (() => { + if (IS_DISCORD_DESKTOP) return `Desktop v${DiscordNative.app.getVersion()}`; + if (IS_VENCORD_DESKTOP) return `Vencord Desktop v${VencordDesktopNative.app.getVersion()}`; + if ("armcord" in window) return `ArmCord v${window.armcord.version}`; + return `Web (${navigator.userAgent})`; + })(); + const debugInfo = ` **Vencord Debug Info** > Discord Branch: ${RELEASE_CHANNEL} -> Client: ${typeof DiscordNative === "undefined" ? window.armcord ? "Armcord" : `Web (${navigator.userAgent})` : `Desktop (Electron v${settings.electronVersion})`} +> Client: ${client} > Platform: ${window.navigator.platform} > Vencord Version: ${gitHash}${settings.additionalInfo} > Outdated: ${isOutdated} |