From b648dbb4761ad027a707b04d2236e85a749bea13 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 31 Aug 2026 22:18:09 +0200 Subject: [PATCH] Validate Discord application ID before install --- setup_tool.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup_tool.py b/setup_tool.py index aaada0c..a4f7ab2 100644 --- a/setup_tool.py +++ b/setup_tool.py @@ -546,6 +546,17 @@ class WowSetupTool: "Disable one of them before applying the setup.", ) return False + + discord_var = self.optional_plugins.get("DiscordPresence.dll") + if discord_var is not None and discord_var.get(): + app_id = self.discord_application_id.get().strip() + if not (15 <= len(app_id) <= 24 and app_id.isdigit()): + messagebox.showerror( + "Discord Application ID required", + "Discord Presence is enabled, but the Discord Application ID is missing or invalid.\n\n" + "Create an application in the Discord Developer Portal and paste its numeric Application ID in the Plugins tab.", + ) + return False return True def load_settings(self, target_dir):