From 3fd583c4830d7d8d31ab772f42fc81c55c5a60cf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 17 Jan 2026 01:39:56 +0000 Subject: [PATCH] Enhance UX for Discord nodes with better tooltips and defaults - Default `add_time` to True in `discord_image_node.py` to prevent Discord caching issues. - Clarify `lossless` tooltip to explain PNG vs WebP behavior. - Add security warnings to `webhook_url` and `github_token` tooltips. - Add markdown examples to `discord_message` tooltip. - Ensure consistency between image and video node tooltips. --- discord_image_node.py | 12 ++++++------ discord_video_node.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/discord_image_node.py b/discord_image_node.py index 545d188..535cc78 100644 --- a/discord_image_node.py +++ b/discord_image_node.py @@ -61,7 +61,7 @@ class DiscordSendSaveImage: }), "lossless": ("BOOLEAN", { "default": True, - "tooltip": "If enabled, will use lossless compression for supported formats (PNG and WebP). JPEG will use maximum quality." + "tooltip": "Use lossless compression for WebP (PNG is always lossless). For JPEG, forces maximum quality (100)." }), "save_output": ("BOOLEAN", { "default": True, @@ -76,8 +76,8 @@ class DiscordSendSaveImage: "tooltip": "Add the current date (YYYY-MM-DD) to filenames." }), "add_time": ("BOOLEAN", { - "default": False, - "tooltip": "Add the current time (HH-MM-SS) to filenames." + "default": True, + "tooltip": "Add the current time (HH-MM-SS) to filenames. ⚠️ Recommended for Discord to avoid caching issues." }), "add_dimensions": ("BOOLEAN", { "default": False, @@ -98,12 +98,12 @@ class DiscordSendSaveImage: "webhook_url": ("STRING", { "default": "", "multiline": False, - "tooltip": "Secure Discord webhook URL (found in Server Settings > Integrations > Webhooks). Treated as sensitive data." + "tooltip": "Secure Discord webhook URL (found in Server Settings > Integrations > Webhooks). Treated as sensitive data. Leave empty to disable." }), "discord_message": ("STRING", { "default": "", "multiline": True, - "tooltip": "Optional text to display with the image. Supports Discord Markdown (bold, italic, etc.)." + "tooltip": "Optional text to display with the image. Supports Discord Markdown (e.g. **bold**, *italic*, > quote)." }), "include_prompts_in_message": ("BOOLEAN", { "default": False, @@ -137,7 +137,7 @@ class DiscordSendSaveImage: "github_token": ("STRING", { "default": "", "multiline": False, - "tooltip": "GitHub personal access token with repo permissions." + "tooltip": "GitHub personal access token (PAT) with 'repo' scope. Keep this private!" }), "github_file_path": ("STRING", { "default": "cdn_urls.md", diff --git a/discord_video_node.py b/discord_video_node.py index cad0cdc..868afa9 100644 --- a/discord_video_node.py +++ b/discord_video_node.py @@ -251,12 +251,12 @@ class DiscordSendSaveVideo: "webhook_url": ("STRING", { "default": "", "multiline": False, - "tooltip": "Discord webhook URL (from Server Settings > Integrations > Webhooks). Leave empty to disable Discord integration." + "tooltip": "Secure Discord webhook URL (from Server Settings > Integrations > Webhooks). Treated as sensitive data. Leave empty to disable." }), "discord_message": ("STRING", { "default": "", "multiline": True, - "tooltip": "Optional text to display with the video. Supports Discord Markdown (bold, italic, etc.)." + "tooltip": "Optional text to display with the video. Supports Discord Markdown (e.g. **bold**, *italic*, > quote)." }), "include_prompts_in_message": ("BOOLEAN", { "default": False, @@ -286,7 +286,7 @@ class DiscordSendSaveVideo: "github_token": ("STRING", { "default": "", "multiline": False, - "tooltip": "GitHub personal access token with repo permissions." + "tooltip": "GitHub personal access token (PAT) with 'repo' scope. Keep this private!" }), "github_file_path": ("STRING", { "default": "cdn_urls.md",