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); }