From e64984b7b82ad1414ec0feecb6bec9094615147b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 6 Jul 2025 19:35:00 -0400 Subject: [PATCH] Include the system ID when starting the bot --- src/components/IndividualClientPage.tsx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/IndividualClientPage.tsx b/src/components/IndividualClientPage.tsx index 588435f..234806a 100644 --- a/src/components/IndividualClientPage.tsx +++ b/src/components/IndividualClientPage.tsx @@ -150,14 +150,15 @@ const IndividualClientPage: React.FC = ({ clientId, t "system_id": selectedSystem }); } else if (action === "join") { - if (!payloadData?.server_id || !payloadData?.channel_id) { + if (!payloadData?.server_id || !payloadData?.channel_id || !selectedSystem) { setError("Please provide both Discord Server ID and Channel ID."); setLoading(false); return; } httpOptions.body = JSON.stringify({ "guild_id": payloadData.server_id, - "channel_id": payloadData.channel_id + "channel_id": payloadData.channel_id, + "system_id": selectedSystem }); } else if (action === "leave") { if (!payloadData?.guild_id) { @@ -335,9 +336,24 @@ const IndividualClientPage: React.FC = ({ clientId, t placeholder="Enter Discord Channel ID" /> +
+ + +
-