From f7ed8843e73f5c74f9c556c28b77d1f85de13d4b Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Sun, 17 May 2026 00:26:13 +0300 Subject: [PATCH] ugh --- src/FluxerListManager.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FluxerListManager.mjs b/src/FluxerListManager.mjs index 3d7ec6e..09ebad0 100644 --- a/src/FluxerListManager.mjs +++ b/src/FluxerListManager.mjs @@ -152,6 +152,10 @@ export class FluxerListManager { if (res.status === 403) { throw new Error("FluxerList API key does not belong to this resource owner."); } + if (res.status === 404) { + const label = type === "server" ? "Server" : "Bot"; + throw new Error(`${label} "${resourceId}" was not found on FluxerList. Make sure the slug in your config is correct — it should match the URL slug (e.g. "remix" from fluxerlist.com/bots/remix).`); + } if (!res.ok) { const text = await res.text().catch(() => ""); throw new Error(`FluxerList API error (HTTP ${res.status}): ${text.slice(0, 200)}`);