From 52203ab9d584a5265b86630dc7e54a287f2f7e33 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 23 Jun 2026 21:16:07 +0200 Subject: [PATCH] Send to Discord: clear message on 413 (file over the channel's upload limit) Co-Authored-By: Claude Opus 4.8 --- web/comfypeeper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/comfypeeper.js b/web/comfypeeper.js index b3f0fb5..c7f8141 100644 --- a/web/comfypeeper.js +++ b/web/comfypeeper.js @@ -38,6 +38,7 @@ async function sendToDiscord(node) { const j = await r.json().catch(() => ({})); if (j?.ok) toast("success", "Sent to Discord"); else if (j?.status === 429) toast("error", "Discord rate-limited the webhook — wait a moment and retry"); + else if (j?.status === 413) toast("error", "Too large for this channel's Discord upload limit (10MB free, more with server boosts)"); else toast("error", "Send failed: " + (j?.error || ("HTTP " + (j?.status ?? r.status)))); } catch (err) { toast("error", "Send failed: " + err);