From cfdbf3cf3ad36413490ad8eb263b4a51767bd674 Mon Sep 17 00:00:00 2001 From: Alexander Yee Date: Fri, 29 Nov 2024 02:03:27 -0800 Subject: [PATCH] Fix build. --- SerialPrograms/Source/Integrations/DiscordWebhook.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SerialPrograms/Source/Integrations/DiscordWebhook.cpp b/SerialPrograms/Source/Integrations/DiscordWebhook.cpp index 5336d6c9b..7d34d5a54 100644 --- a/SerialPrograms/Source/Integrations/DiscordWebhook.cpp +++ b/SerialPrograms/Source/Integrations/DiscordWebhook.cpp @@ -66,7 +66,9 @@ void DiscordWebhookSender::send( throttle(); std::vector attachments; if (file){ - attachments.emplace_back(file->filename(), file->filepath()); + attachments.emplace_back( + DiscordFileAttachment{file->filename(), file->filepath()} + ); } internal_send(url, *json, attachments); }